You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Switches to using eslint v9 and eslint-config-eslint v10 to lint this project.
What changes did you make? (Give an overview)
Updated package.json to use ESLint v9 and eslint-config-eslint v10. Also bumped eslint plugins to the latest versions.
Added "overrides": { "eslint": "^9.2.0" } to package.json to make npm install work because eslint-plugin-jsx-a11y, eslint-plugin-react and eslint-plugin-react-hooks don't have eslint v9 in range in peer dependencies.
Updated eslint.config.js to use eslint-config-eslint 's base config for playground files, so that there's no need anymore to disable eslint-plugin-n rules. The previously used cjs config is for Node.js CommonJS projects, which Playground is not.
Used @eslint/compat on eslint-plugin-jsx-a11y, eslint-plugin-react and eslint-plugin-react-hooks as neither of these plugins officially supports eslint v9 yet (although only eslint-plugin-react throws errors like context.getScope is not a function).
Related Issues
No.
Is there anything you'd like reviewers to focus on?
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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?