Skip to content

Commit

Permalink
feat(eslint-config)!: remove babel-eslint and update deps (#45)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Replace babel-eslint with @babel/eslint-parser
  • Loading branch information
kyletsang authored Jun 16, 2023
1 parent 72fd596 commit 099ed56
Show file tree
Hide file tree
Showing 3 changed files with 483 additions and 28 deletions.
8 changes: 7 additions & 1 deletion packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ module.exports = {
globals: {
__DEV__: false,
},
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: ['@babel/preset-react']
}
},
plugins: ['react', 'react-hooks'],
rules: {
'max-len': 'off',
Expand Down
14 changes: 8 additions & 6 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"access": "public"
},
"peerDependencies": {
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.22.0"
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2"
},
"dependencies": {
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-react-hooks": "^4.2.0"
"@babel/eslint-parser": "^7.22.5",
"@babel/preset-react": "^7.22.5",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-react-hooks": "^4.6.0"
}
}
Loading

0 comments on commit 099ed56

Please sign in to comment.