@@ -27,7 +27,7 @@ import { yaml as pluginYaml } from 'eslint-yaml';
2727// https://github.com/benyasin/eslint-plugin-filename/issues/1
2828pluginFilename . rules . match . meta . schema = false ;
2929
30- const PACKAGES_NODE_VERSIONS = '^18.12 ' ;
30+ const PACKAGES_NODE_VERSIONS = '^20.19 ' ;
3131const DEV_NODE_VERSIONS = '^20.19' ;
3232
3333const ERROR = 'error' ;
@@ -1736,25 +1736,6 @@ const transpiledAndPolyfilled = {
17361736const nodePackages = {
17371737 // disallow unsupported ECMAScript built-ins on the specified version
17381738 'node/no-unsupported-features/node-builtins' : [ ERROR , { version : PACKAGES_NODE_VERSIONS , allowExperimental : false } ] ,
1739- ...forbidES2023BuiltIns ,
1740- 'es/no-array-prototype-findlast-findlastindex' : OFF ,
1741- ...forbidES2024BuiltIns ,
1742- ...forbidES2025BuiltIns ,
1743- ...forbidES2026BuiltIns ,
1744- 'es/no-intl-supportedvaluesof' : ERROR ,
1745- ...forbidES2023IntlBuiltIns ,
1746- ...forbidES2025BuiltIns ,
1747- ...forbidES2026IntlBuiltIns ,
1748- // prefer using `structuredClone` to create a deep clone
1749- 'unicorn/prefer-structured-clone' : OFF ,
1750- ...forbidSomeES2025Syntax ,
1751- // prefer top-level await
1752- 'unicorn/prefer-top-level-await' : ERROR ,
1753- } ;
1754-
1755- const nodeDev = {
1756- // disallow unsupported ECMAScript built-ins on the specified version
1757- 'node/no-unsupported-features/node-builtins' : [ ERROR , { version : DEV_NODE_VERSIONS , ignores : [ 'fetch' ] , allowExperimental : false } ] ,
17581739 ...disable ( forbidModernBuiltIns ) ,
17591740 ...forbidES2024BuiltIns ,
17601741 'es/no-regexp-v-flag' : OFF ,
@@ -1771,6 +1752,12 @@ const nodeDev = {
17711752 ...forbidSomeES2025Syntax ,
17721753} ;
17731754
1755+ const nodeDev = {
1756+ ...nodePackages ,
1757+ // disallow unsupported ECMAScript built-ins on the specified version
1758+ 'node/no-unsupported-features/node-builtins' : [ ERROR , { version : DEV_NODE_VERSIONS , ignores : [ 'fetch' ] , allowExperimental : false } ] ,
1759+ } ;
1760+
17741761const tests = {
17751762 // relax for testing:
17761763 // enforces return statements in callbacks of array's methods
0 commit comments