tools: revert to use @stylistic/eslint-plugin-js v3

@stylistic/eslint-plugin-js v4 has been updated to ship ESM-only,
which needs require(esm) support due to the monkey-patching
we do in our eslint.config.mjs. The node-test-linter job in Jenkins
still runs Node.js v20 which has not yet released unflagging
of require(esm). Revert to use v3 for now until we upgrade the
Node.js version used in the CI.

PR-URL: https://github.com/nodejs/node/pull/57314
Refs: https://github.com/nodejs/node/pull/57261
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
Joyee Cheung authored and RafaelGSS committed 2025-05-02 17:04:52 -03:00
1 parent 9885c5562e
commit 88dd94da96
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -12,7 +12,7 @@
"@babel/eslint-parser": "^7.26.8",
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@babel/plugin-syntax-import-source": "^7.25.9",
"@stylistic/eslint-plugin-js": "^4.1.0",
"@stylistic/eslint-plugin-js": "^3.0.1",
"eslint": "^9.21.0",
"eslint-formatter-tap": "^8.40.0",
"eslint-plugin-jsdoc": "^50.6.3",
@@ -574,9 +574,9 @@
}
},
"node_modules/@stylistic/eslint-plugin-js": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-4.1.0.tgz",
"integrity": "sha512-YOe+dChNoR26JVVt+7BjyebsPIQF05OLNmHCXivq8lLZ4ZeVs4+wXaW+pREVboDiAaSRznauAdAU8f+iQouw6Q==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin-js/-/eslint-plugin-js-3.1.0.tgz",
"integrity": "sha512-lQktsOiCr8S6StG29C5fzXYxLOD6ID1rp4j6TRS+E/qY1xd59Fm7dy5qm9UauJIEoSTlYx6yGsCHYh5UkgXPyg==",
"license": "MIT",
"dependencies": {
"eslint-visitor-keys": "^4.2.0",
@@ -586,7 +586,7 @@
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"peerDependencies": {
"eslint": ">=9.0.0"
"eslint": ">=8.40.0"
}
},
"node_modules/@stylistic/eslint-plugin-js/node_modules/eslint-visitor-keys": {
+1 -1
View File
@@ -7,7 +7,7 @@
"@babel/eslint-parser": "^7.26.8",
"@babel/plugin-syntax-import-attributes": "^7.26.0",
"@babel/plugin-syntax-import-source": "^7.25.9",
"@stylistic/eslint-plugin-js": "^4.1.0",
"@stylistic/eslint-plugin-js": "^3.0.1",
"eslint": "^9.21.0",
"eslint-formatter-tap": "^8.40.0",
"eslint-plugin-jsdoc": "^50.6.3",