Skip to content

ESLint v 9x Compatibility Changes #3148

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bilal-S
Copy link

@Bilal-S Bilal-S commented Aug 16, 2025

These are the changes for ESLint 9.x branch compatibility.
Made all changes needed that I could find to run with new ESLint versions including removing some older packages and dependencies. Similarly some packages were added. Please see changes to see package.json files.
This maybe too large of a change and may need to be broken down further.
I was limited to Windows for testing.

@@ -10,12 +10,12 @@
"lint": "markdownlint --config linters/.markdownlint.json README.md */README.md",
"pretest": "npm run --silent lint",
"test": "npm run --silent test:config && npm run --silent test:config:base",
"test:config": "cd packages/eslint-config-airbnb; npm test",
"test:config:base": "cd packages/eslint-config-airbnb-base; npm test",
"test:config": "cd packages/eslint-config-airbnb && npm test",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed? cd should never fail regardless

},
"peerDependencies": {
"eslint": "^7.32.0 || ^8.2.0",
"eslint": "^9.8.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a breaking change. please limit yourself to things that work with eslint 7+.

// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
'react/jsx-curly-newline': ['error', {
// https://eslint.style/rules/jsx/jsx-curly-newline
'@stylistic/jsx/jsx-curly-newline': ['error', {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding a new peer dep is a breaking change; we won't be doing that.

@ljharb ljharb marked this pull request as draft August 19, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants