@automattic/eslint-config-target-es 3.0.0 → 4.0.0

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 CHANGED
@@ -5,6 +5,13 @@ 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.0] - 2025-08-06
9
+ ### Added
10
+ - Enable new rules from `eslint-plugin-es-x'. [#44288]
11
+
12
+ ### Changed
13
+ - Update package dependencies. [#43522] [#43578] [#44020] [#44148] [#44217] [#44276] [#44288] [#44289] [#44355] [#44508]
14
+
8
15
  ## [3.0.0] - 2025-05-13
9
16
  ### Added
10
17
  - Add keywords in package.json for npm search. [#42948]
@@ -91,6 +98,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
91
98
  ### Added
92
99
  - Initial release.
93
100
 
101
+ [4.0.0]: https://github.com/Automattic/eslint-config-target-es/compare/3.0.0...4.0.0
94
102
  [3.0.0]: https://github.com/Automattic/eslint-config-target-es/compare/2.2.2...3.0.0
95
103
  [2.2.2]: https://github.com/Automattic/eslint-config-target-es/compare/2.2.1...2.2.2
96
104
  [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.0.0",
3
+ "version": "4.0.0",
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.0.8",
41
+ "@mdn/browser-compat-data": "6.0.31",
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.22.0",
35
- "eslint": "9.25.1",
36
- "eslint-plugin-es-x": "8.6.2",
47
+ "@wordpress/browserslist-config": "6.26.0",
48
+ "eslint": "9.32.0",
49
+ "eslint-plugin-es-x": "9.0.0",
37
50
  "globals": "16.0.0",
38
- "jest": "29.7.0"
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.static_class_fields',
95
- 'no-class-static-block': 'javascript.classes.static_initialization_blocks',
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': [
@@ -395,6 +406,8 @@ module.exports = {
395
406
  'no-nonstandard-array-prototype-properties': false,
396
407
  'no-nonstandard-arraybuffer-properties': false,
397
408
  'no-nonstandard-arraybuffer-prototype-properties': false,
409
+ 'no-nonstandard-asyncdisposablestack-properties': false,
410
+ 'no-nonstandard-asyncdisposablestack-prototype-properties': false,
398
411
  'no-nonstandard-atomics-properties': false,
399
412
  'no-nonstandard-bigint-properties': false,
400
413
  'no-nonstandard-bigint-prototype-properties': false,
@@ -404,6 +417,9 @@ module.exports = {
404
417
  'no-nonstandard-dataview-prototype-properties': false,
405
418
  'no-nonstandard-date-properties': false,
406
419
  'no-nonstandard-date-prototype-properties': false,
420
+ 'no-nonstandard-disposablestack-properties': false,
421
+ 'no-nonstandard-disposablestack-prototype-properties': false,
422
+ 'no-nonstandard-error-properties': false,
407
423
  'no-nonstandard-finalizationregistry-properties': false,
408
424
  'no-nonstandard-finalizationregistry-prototype-properties': false,
409
425
  'no-nonstandard-function-properties': false,