-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: switch to eslint v9, eslint-config-eslint v10 #561
Conversation
✅ Deploy Preview for zh-hans-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for new-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for es-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ja-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for hi-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for pt-br-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for de-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for fr-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
* chore: switch to eslint v9, eslint-config-eslint v10 * use `@eslint/compat` from npm, use overrides instead of --forec * bump eslint to v9.2.0
Prerequisites checklist
What is the purpose of this pull request?
Switches to using eslint v9 and eslint-config-eslint v10 to lint this project.
What changes did you make? (Give an overview)
package.json
to use ESLint v9 and eslint-config-eslint v10. Also bumped eslint plugins to the latest versions."overrides": { "eslint": "^9.2.0" }
topackage.json
to makenpm install
work becauseeslint-plugin-jsx-a11y
,eslint-plugin-react
andeslint-plugin-react-hooks
don't have eslint v9 in range in peer dependencies.eslint.config.js
to use eslint-config-eslint 'sbase
config for playground files, so that there's no need anymore to disableeslint-plugin-n
rules. The previously usedcjs
config is for Node.js CommonJS projects, which Playground is not.@eslint/compat
oneslint-plugin-jsx-a11y
,eslint-plugin-react
andeslint-plugin-react-hooks
as neither of these plugins officially supports eslint v9 yet (although onlyeslint-plugin-react
throws errors likecontext.getScope
is not a function).Related Issues
No.
Is there anything you'd like reviewers to focus on?