@automattic/eslint-config-target-es 3.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/package.json +24 -24
- package/src/rulesMap.js +25 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [4.0.1] - 2025-10-13
|
|
9
|
+
### Changed
|
|
10
|
+
- Update package dependencies. [#44677] [#44701] [#44892] [#45027] [#45229] [#45242]
|
|
11
|
+
|
|
12
|
+
## [4.0.0] - 2025-08-06
|
|
13
|
+
### Added
|
|
14
|
+
- Enable new rules from `eslint-plugin-es-x'. [#44288]
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Update package dependencies. [#43522] [#43578] [#44020] [#44148] [#44217] [#44276] [#44288] [#44289] [#44355] [#44508]
|
|
18
|
+
|
|
8
19
|
## [3.0.0] - 2025-05-13
|
|
9
20
|
### Added
|
|
10
21
|
- Add keywords in package.json for npm search. [#42948]
|
|
@@ -91,6 +102,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
91
102
|
### Added
|
|
92
103
|
- Initial release.
|
|
93
104
|
|
|
105
|
+
[4.0.1]: https://github.com/Automattic/eslint-config-target-es/compare/4.0.0...4.0.1
|
|
106
|
+
[4.0.0]: https://github.com/Automattic/eslint-config-target-es/compare/3.0.0...4.0.0
|
|
94
107
|
[3.0.0]: https://github.com/Automattic/eslint-config-target-es/compare/2.2.2...3.0.0
|
|
95
108
|
[2.2.2]: https://github.com/Automattic/eslint-config-target-es/compare/2.2.1...2.2.2
|
|
96
109
|
[2.2.1]: https://github.com/Automattic/eslint-config-target-es/compare/2.2.0...2.2.1
|
package/package.json
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/eslint-config-target-es",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "ESLint sharable config to activate eslint-plugin-es-x checks based on browserslist targets.",
|
|
5
|
-
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/eslint-config-target-es/README.md#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/Automattic/jetpack/labels/[JS Package] Eslint Config Target Es"
|
|
8
|
-
},
|
|
9
5
|
"keywords": [
|
|
10
6
|
"eslint",
|
|
11
7
|
"config",
|
|
@@ -13,6 +9,10 @@
|
|
|
13
9
|
"eslintconfig",
|
|
14
10
|
"browserslist"
|
|
15
11
|
],
|
|
12
|
+
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/eslint-config-target-es/README.md#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Automattic/jetpack/labels/[JS Package] Eslint Config Target Es"
|
|
15
|
+
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "https://github.com/Automattic/jetpack.git",
|
|
@@ -20,44 +20,44 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "GPL-2.0-or-later",
|
|
22
22
|
"author": "Automattic",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./src/eslintrc/all.js",
|
|
25
|
+
"./all": "./src/eslintrc/all.js",
|
|
26
|
+
"./builtins": "./src/eslintrc/builtins.js",
|
|
27
|
+
"./flat/all": "./src/flatconfig/all.js",
|
|
28
|
+
"./flat/builtins": "./src/flatconfig/builtins.js",
|
|
29
|
+
"./flat/language": "./src/flatconfig/language.js",
|
|
30
|
+
"./functions": "./src/funcs.js",
|
|
31
|
+
"./language": "./src/eslintrc/language.js",
|
|
32
|
+
"./rc/all": "./src/eslintrc/all.js",
|
|
33
|
+
"./rc/builtins": "./src/eslintrc/builtins.js",
|
|
34
|
+
"./rc/language": "./src/eslintrc/language.js"
|
|
35
|
+
},
|
|
23
36
|
"scripts": {
|
|
24
37
|
"test": "jest --config=tests/jest.config.cjs",
|
|
25
38
|
"test-coverage": "pnpm run test --coverage"
|
|
26
39
|
},
|
|
27
40
|
"dependencies": {
|
|
28
|
-
"@mdn/browser-compat-data": "6.
|
|
41
|
+
"@mdn/browser-compat-data": "6.1.4",
|
|
29
42
|
"browserslist": "^4.17.6",
|
|
30
43
|
"debug": "^4.3.2",
|
|
31
44
|
"semver": "^7.3.5"
|
|
32
45
|
},
|
|
33
46
|
"devDependencies": {
|
|
34
|
-
"@wordpress/browserslist-config": "6.
|
|
35
|
-
"eslint": "9.
|
|
36
|
-
"eslint-plugin-es-x": "
|
|
47
|
+
"@wordpress/browserslist-config": "6.31.0",
|
|
48
|
+
"eslint": "9.35.0",
|
|
49
|
+
"eslint-plugin-es-x": "9.1.0",
|
|
37
50
|
"globals": "16.0.0",
|
|
38
|
-
"jest": "
|
|
51
|
+
"jest": "30.0.4"
|
|
39
52
|
},
|
|
40
53
|
"peerDependencies": {
|
|
41
54
|
"eslint": ">=4.19.1",
|
|
42
|
-
"eslint-plugin-es-x": "^8.0.0",
|
|
55
|
+
"eslint-plugin-es-x": "^8.0.0 || ^9.0.0",
|
|
43
56
|
"globals": ">=15.4.0"
|
|
44
57
|
},
|
|
45
58
|
"peerDependenciesMeta": {
|
|
46
59
|
"globals": {
|
|
47
60
|
"optional": true
|
|
48
61
|
}
|
|
49
|
-
},
|
|
50
|
-
"exports": {
|
|
51
|
-
".": "./src/eslintrc/all.js",
|
|
52
|
-
"./language": "./src/eslintrc/language.js",
|
|
53
|
-
"./builtins": "./src/eslintrc/builtins.js",
|
|
54
|
-
"./all": "./src/eslintrc/all.js",
|
|
55
|
-
"./rc/language": "./src/eslintrc/language.js",
|
|
56
|
-
"./rc/builtins": "./src/eslintrc/builtins.js",
|
|
57
|
-
"./rc/all": "./src/eslintrc/all.js",
|
|
58
|
-
"./flat/language": "./src/flatconfig/language.js",
|
|
59
|
-
"./flat/builtins": "./src/flatconfig/builtins.js",
|
|
60
|
-
"./flat/all": "./src/flatconfig/all.js",
|
|
61
|
-
"./functions": "./src/funcs.js"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/src/rulesMap.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
// Map of eslint-plugin-es-x rules to MDN compat-data paths.
|
|
2
2
|
// Values are either a path, an array of paths, true to always enable the rule, or false to always disable it.
|
|
3
3
|
module.exports = {
|
|
4
|
+
// ES2026
|
|
5
|
+
'no-array-fromasync': 'javascript.builtins.Array.fromAsync',
|
|
6
|
+
'no-asyncdisposablestack': 'javascript.builtins.AsyncDisposableStack.AsyncDisposableStack',
|
|
7
|
+
'no-disposablestack': 'javascript.builtins.DisposableStack.DisposableStack',
|
|
8
|
+
'no-error-iserror': 'javascript.builtins.Error.isError',
|
|
9
|
+
'no-suppressederror': 'javascript.builtins.SuppressedError.SuppressedError',
|
|
10
|
+
'no-symbol-asyncdispose': 'javascript.builtins.Symbol.asyncDispose',
|
|
11
|
+
'no-symbol-dispose': 'javascript.builtins.Symbol.dispose',
|
|
12
|
+
'no-using-declarations': 'javascript.statements.using',
|
|
13
|
+
|
|
4
14
|
// ES2025
|
|
5
15
|
'no-dataview-prototype-getfloat16-setfloat16': [
|
|
6
16
|
'javascript.builtins.DataView.getFloat16',
|
|
@@ -91,8 +101,8 @@ module.exports = {
|
|
|
91
101
|
],
|
|
92
102
|
'no-class-private-fields': 'javascript.classes.private_class_fields',
|
|
93
103
|
'no-class-private-methods': 'javascript.classes.private_class_methods',
|
|
94
|
-
'no-class-static-fields': 'javascript.classes.
|
|
95
|
-
'no-class-static-block': 'javascript.classes.
|
|
104
|
+
'no-class-static-fields': 'javascript.classes.static.class_fields',
|
|
105
|
+
'no-class-static-block': 'javascript.classes.static.initialization_blocks',
|
|
96
106
|
'no-error-cause': [
|
|
97
107
|
'javascript.builtins.Error.Error.options_cause_parameter',
|
|
98
108
|
'javascript.builtins.Error.cause',
|
|
@@ -139,6 +149,7 @@ module.exports = {
|
|
|
139
149
|
'no-promise-all-settled': 'javascript.builtins.Promise.allSettled',
|
|
140
150
|
'no-regexp-unicode-property-escapes-2020': false, // No support data in MDN separate from no-regexp-unicode-property-escapes. https://github.com/mdn/browser-compat-data/issues/19631
|
|
141
151
|
'no-string-prototype-matchall': 'javascript.builtins.String.matchAll',
|
|
152
|
+
'no-symbol-matchall': 'javascript.builtins.Symbol.matchAll',
|
|
142
153
|
|
|
143
154
|
// ES2019
|
|
144
155
|
'no-array-prototype-flat': [
|
|
@@ -200,6 +211,12 @@ module.exports = {
|
|
|
200
211
|
'javascript.statements.function.trailing_comma_in_parameters',
|
|
201
212
|
'javascript.statements.generator_function.trailing_comma_in_parameters',
|
|
202
213
|
],
|
|
214
|
+
'no-uint8array-frombase64': 'javascript.builtins.Uint8Array.fromBase64',
|
|
215
|
+
'no-uint8array-fromhex': 'javascript.builtins.Uint8Array.fromHex',
|
|
216
|
+
'no-uint8array-prototype-setfrombase64': 'javascript.builtins.Uint8Array.setFromBase64',
|
|
217
|
+
'no-uint8array-prototype-setfromhex': 'javascript.builtins.Uint8Array.setFromHex',
|
|
218
|
+
'no-uint8array-prototype-tobase64': 'javascript.builtins.Uint8Array.toBase64',
|
|
219
|
+
'no-uint8array-prototype-tohex': 'javascript.builtins.Uint8Array.toHex',
|
|
203
220
|
|
|
204
221
|
// ES2016
|
|
205
222
|
'no-array-prototype-includes': 'javascript.builtins.Array.includes',
|
|
@@ -250,6 +267,7 @@ module.exports = {
|
|
|
250
267
|
'no-math-log2': 'javascript.builtins.Math.log2',
|
|
251
268
|
'no-math-sign': 'javascript.builtins.Math.sign',
|
|
252
269
|
'no-math-sinh': 'javascript.builtins.Math.sinh',
|
|
270
|
+
'no-math-sumprecise': 'javascript.builtins.Math.sumPrecise',
|
|
253
271
|
'no-math-tanh': 'javascript.builtins.Math.tanh',
|
|
254
272
|
'no-math-trunc': 'javascript.builtins.Math.trunc',
|
|
255
273
|
'no-modules': [ 'javascript.statements.import', 'javascript.statements.export' ],
|
|
@@ -395,6 +413,8 @@ module.exports = {
|
|
|
395
413
|
'no-nonstandard-array-prototype-properties': false,
|
|
396
414
|
'no-nonstandard-arraybuffer-properties': false,
|
|
397
415
|
'no-nonstandard-arraybuffer-prototype-properties': false,
|
|
416
|
+
'no-nonstandard-asyncdisposablestack-properties': false,
|
|
417
|
+
'no-nonstandard-asyncdisposablestack-prototype-properties': false,
|
|
398
418
|
'no-nonstandard-atomics-properties': false,
|
|
399
419
|
'no-nonstandard-bigint-properties': false,
|
|
400
420
|
'no-nonstandard-bigint-prototype-properties': false,
|
|
@@ -404,6 +424,9 @@ module.exports = {
|
|
|
404
424
|
'no-nonstandard-dataview-prototype-properties': false,
|
|
405
425
|
'no-nonstandard-date-properties': false,
|
|
406
426
|
'no-nonstandard-date-prototype-properties': false,
|
|
427
|
+
'no-nonstandard-disposablestack-properties': false,
|
|
428
|
+
'no-nonstandard-disposablestack-prototype-properties': false,
|
|
429
|
+
'no-nonstandard-error-properties': false,
|
|
407
430
|
'no-nonstandard-finalizationregistry-properties': false,
|
|
408
431
|
'no-nonstandard-finalizationregistry-prototype-properties': false,
|
|
409
432
|
'no-nonstandard-function-properties': false,
|