Skip to content

Commit b01a16b

Browse files
authored
Release/15.0.1 (#456)
This is a release candidate for v15.0.1, a backport release for v15.x <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Packaging-only change with no lint rule or runtime logic edits; risk is limited to module resolution behavior for consumers on 15.0.0. > > **Overview** > **v15.0.1** is a patch backport across all `@metamask/eslint-config*` workspace packages (root and eight published configs). > > The functional change is in each package’s **`exports`** map: the entry point no longer uses an **`import`-only** nested condition. **`types`** and **`default`** now sit directly on `"."`, so Node can resolve the published **`index.mjs`** for consumers that load the package from **CommonJS** (e.g. legacy `eslint.config.js` or tooling that `require`s the config), addressing [#453](#453). > > Versions move **15.0.0 → 15.0.1**; changelogs record the fix under **[15.0.1] [BACKPORT]** with updated compare links. No ESLint rule or source config changes are in this diff. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a3ad788. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 0b8cf6d commit b01a16b

17 files changed

Lines changed: 89 additions & 49 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eslint-config-root",
3-
"version": "15.0.0",
3+
"version": "15.0.1",
44
"private": true,
55
"repository": {
66
"type": "git",

packages/base/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [15.0.1] [BACKPORT]
11+
12+
### Fixed
13+
14+
- Allow import from CommonJS ([#453](https://github.com/MetaMask/eslint-config/pull/453))
15+
1016
## [15.0.0]
1117

1218
### Changed
@@ -292,7 +298,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
292298

293299
- Add base, TypeScript, and Jest configs (#3)
294300

295-
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config@15.0.0...HEAD
301+
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config@15.0.1...HEAD
302+
[15.0.1]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config@15.0.0...@metamask/eslint-config@15.0.1
296303
[15.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config@14.1.0...@metamask/eslint-config@15.0.0
297304
[14.1.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config@14.0.0...@metamask/eslint-config@14.1.0
298305
[14.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config@13.0.0...@metamask/eslint-config@14.0.0

packages/base/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eslint-config",
3-
"version": "15.0.0",
3+
"version": "15.0.1",
44
"description": "Shareable MetaMask ESLint config.",
55
"homepage": "https://github.com/MetaMask/eslint-config#readme",
66
"bugs": {
@@ -14,10 +14,8 @@
1414
"type": "module",
1515
"exports": {
1616
".": {
17-
"import": {
18-
"types": "./src/index.d.mts",
19-
"default": "./src/index.mjs"
20-
}
17+
"types": "./src/index.d.mts",
18+
"default": "./src/index.mjs"
2119
}
2220
},
2321
"main": "./src/index.mjs",

packages/browser/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [15.0.1] [BACKPORT]
11+
12+
### Fixed
13+
14+
- Allow import from CommonJS ([#453](https://github.com/MetaMask/eslint-config/pull/453))
15+
1016
## [15.0.0]
1117

1218
### Changed
@@ -60,7 +66,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6066

6167
- Initial release of this package.
6268

63-
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-browser@15.0.0...HEAD
69+
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-browser@15.0.1...HEAD
70+
[15.0.1]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-browser@15.0.0...@metamask/eslint-config-browser@15.0.1
6471
[15.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-browser@14.0.0...@metamask/eslint-config-browser@15.0.0
6572
[14.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-browser@13.0.0...@metamask/eslint-config-browser@14.0.0
6673
[13.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-browser@12.1.0...@metamask/eslint-config-browser@13.0.0

packages/browser/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eslint-config-browser",
3-
"version": "15.0.0",
3+
"version": "15.0.1",
44
"description": "Shareable MetaMask ESLint plugin for browser environments.",
55
"homepage": "https://github.com/MetaMask/eslint-config#readme",
66
"bugs": {
@@ -14,10 +14,8 @@
1414
"type": "module",
1515
"exports": {
1616
".": {
17-
"import": {
18-
"types": "./src/index.d.mts",
19-
"default": "./src/index.mjs"
20-
}
17+
"types": "./src/index.d.mts",
18+
"default": "./src/index.mjs"
2119
}
2220
},
2321
"main": "./src/index.mjs",

packages/commonjs/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [15.0.1] [BACKPORT]
11+
12+
### Fixed
13+
14+
- Allow import from CommonJS ([#453](https://github.com/MetaMask/eslint-config/pull/453))
15+
1016
## [15.0.0]
1117

1218
### Changed
@@ -55,7 +61,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5561

5662
- Initial release of this package ([#267](https://github.com/MetaMask/eslint-config/pull/267))
5763

58-
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-commonjs@15.0.0...HEAD
64+
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-commonjs@15.0.1...HEAD
65+
[15.0.1]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-commonjs@15.0.0...@metamask/eslint-config-commonjs@15.0.1
5966
[15.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-commonjs@14.0.0...@metamask/eslint-config-commonjs@15.0.0
6067
[14.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-commonjs@13.0.0...@metamask/eslint-config-commonjs@14.0.0
6168
[13.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-commonjs@12.1.0...@metamask/eslint-config-commonjs@13.0.0

packages/commonjs/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eslint-config-commonjs",
3-
"version": "15.0.0",
3+
"version": "15.0.1",
44
"description": "Shareable MetaMask ESLint config for CommonJS projects.",
55
"homepage": "https://github.com/MetaMask/eslint-config#readme",
66
"bugs": {
@@ -14,10 +14,8 @@
1414
"type": "module",
1515
"exports": {
1616
".": {
17-
"import": {
18-
"types": "./src/index.d.mts",
19-
"default": "./src/index.mjs"
20-
}
17+
"types": "./src/index.d.mts",
18+
"default": "./src/index.mjs"
2119
}
2220
},
2321
"main": "./src/index.mjs",

packages/jest/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [15.0.1] [BACKPORT]
11+
12+
### Fixed
13+
14+
- Allow import from CommonJS ([#453](https://github.com/MetaMask/eslint-config/pull/453))
15+
1016
## [15.0.0]
1117

1218
### Changed
@@ -128,7 +134,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
128134
- To continue extending this config, install this package and update your `.eslintrc.js` `extends` array to include `@metamask/eslint-config-jest` instead of `@metamask/eslint-config/jest`.
129135
- Update `eslint` and other ESLint peer dependencies ([#151](https://github.com/MetaMask/eslint-config/pull/151))
130136

131-
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-jest@15.0.0...HEAD
137+
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-jest@15.0.1...HEAD
138+
[15.0.1]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-jest@15.0.0...@metamask/eslint-config-jest@15.0.1
132139
[15.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-jest@14.1.0...@metamask/eslint-config-jest@15.0.0
133140
[14.1.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-jest@14.0.0...@metamask/eslint-config-jest@14.1.0
134141
[14.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-jest@13.0.0...@metamask/eslint-config-jest@14.0.0

packages/jest/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metamask/eslint-config-jest",
3-
"version": "15.0.0",
3+
"version": "15.0.1",
44
"description": "Shareable MetaMask ESLint config for Jest.",
55
"homepage": "https://github.com/MetaMask/eslint-config#readme",
66
"bugs": {
@@ -14,10 +14,8 @@
1414
"type": "module",
1515
"exports": {
1616
".": {
17-
"import": {
18-
"types": "./src/index.d.mts",
19-
"default": "./src/index.mjs"
20-
}
17+
"types": "./src/index.d.mts",
18+
"default": "./src/index.mjs"
2119
}
2220
},
2321
"main": "./src/index.mjs",

packages/mocha/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [15.0.1] [BACKPORT]
11+
12+
### Fixed
13+
14+
- Allow import from CommonJS ([#453](https://github.com/MetaMask/eslint-config/pull/453))
15+
1016
## [15.0.0]
1117

1218
### Changed
@@ -115,7 +121,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
115121
- To continue extending this config, install this package and update your `.eslintrc.js` `extends` array to include `@metamask/eslint-config-mocha` instead of `@metamask/eslint-config/mocha`.
116122
- Update `eslint` and other ESLint peer dependencies ([#151](https://github.com/MetaMask/eslint-config/pull/151))
117123

118-
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-mocha@15.0.0...HEAD
124+
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-mocha@15.0.1...HEAD
125+
[15.0.1]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-mocha@15.0.0...@metamask/eslint-config-mocha@15.0.1
119126
[15.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-mocha@14.0.0...@metamask/eslint-config-mocha@15.0.0
120127
[14.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-mocha@13.0.0...@metamask/eslint-config-mocha@14.0.0
121128
[13.0.0]: https://github.com/MetaMask/eslint-config/compare/@metamask/eslint-config-mocha@12.1.0...@metamask/eslint-config-mocha@13.0.0

0 commit comments

Comments
 (0)