Skip to content

Commit

Permalink
chore: downgrade eslint to 8.x
Browse files Browse the repository at this point in the history
eslint 9 is still too new and its ecosystem is simply not ready yet, so we (Carlos Serrano and me) decided to downgrade it to eslint 8. Also remove babel-eslint since it is discontinued in favour of the default eslint parser "espree"

BREAKING CHANGE: downgrade eslint from 9 to 8

Issues: MOL-29362
  • Loading branch information
Txabox committed Apr 25, 2024
1 parent 281a803 commit 1d4383b
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 260 deletions.
2 changes: 1 addition & 1 deletion configurations/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parser": "espree", // default one: https://eslint.org/docs/v8.x/use/configure/parser
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"eslint-import-resolver-webpack": "^0.13.8"
},
"dependencies": {
"babel-eslint": "^10.1.0",
"eslint": "^8.57.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-import": "^2.29.1",
Expand All @@ -18,16 +18,12 @@
"eslint-plugin-unicorn": "^52.0.0"
},
"devDependencies": {
"eslint": "^9.0.0",
"husky": "^7.0.2",
"semantic-release": "^22.0.12"
},
"engines": {
"node": ">=18.18"
},
"peerDependencies": {
"eslint": "^9.0.0"
},
"keywords": [
"eslint",
"config"
Expand Down
Loading

0 comments on commit 1d4383b

Please sign in to comment.