Skip to content

Commit

Permalink
Merge pull request #1768 from consideRatio/pr/make-eslint
Browse files Browse the repository at this point in the history
Make eslint understand modern .js with babel's parser
  • Loading branch information
yuvipanda authored Oct 9, 2023
2 parents 79a15e2 + c9e711b commit e64028a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ module.exports = {
"env": {
"browser": true,
"jquery": true,
"es6": true,
"jest/globals": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"jest/globals": true,
},
"extends": [
"eslint:recommended",
],
"parser": "@babel/eslint-parser",
"plugins": [
"jest"
]
"jest",
],
"rules": {},
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.4",
"@babel/eslint-parser": "^7.22.15",
"@babel/preset-env": "^7.21.4",
"@types/jest": "^29.5.5",
"babel-jest": "^29.7.0",
Expand Down

0 comments on commit e64028a

Please sign in to comment.