Skip to content

Commit efdc5f1

Browse files
committed
maint: eslint latest ECMA script and drop @babel/eslint-parser.
The current @babel/eslint-parser version 7 is not compatible with eslint 10. Also eslint supports with the latest ECMA script version configuration recent enough JavaScript, so that we can drop the dependency on @babel/eslint-parser.
1 parent 02eb557 commit efdc5f1

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

eslint.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
const js = require("@eslint/js");
22
const config_prettier = require("eslint-config-prettier");
33
const globals = require("globals");
4-
const babel_parser = require("@babel/eslint-parser");
54

65
module.exports = [
76
js.configs.recommended,
87
config_prettier,
98
{
109
languageOptions: {
11-
ecmaVersion: 2022,
10+
ecmaVersion: "latest",
1211
globals: {
1312
...globals.browser,
1413
...globals.node,
1514
...globals.jest,
1615
},
17-
parser: babel_parser,
1816
},
1917
ignores: [
2018
"cache/",
@@ -33,5 +31,5 @@ module.exports = [
3331
"no-self-assign": 0,
3432
"no-useless-escape": 0,
3533
},
36-
}
34+
},
3735
];

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"license": "MIT",
66
"dependencies": {
77
"@babel/core": "^7.29.0",
8-
"@babel/eslint-parser": "^7.28.6",
98
"@babel/preset-env": "^7.29.2",
109
"@commitlint/cli": "^20.5.0",
1110
"@commitlint/config-conventional": "^20.5.0",

0 commit comments

Comments
 (0)