Skip to content

Adding support for eslint 9#3244

Open
j-castellanos wants to merge 4 commits intoairbnb:masterfrom
j-castellanos:jc/eslint-9-support
Open

Adding support for eslint 9#3244
j-castellanos wants to merge 4 commits intoairbnb:masterfrom
j-castellanos:jc/eslint-9-support

Conversation

@j-castellanos
Copy link
Copy Markdown

Giving my attempt at eslint 9 support 😅

@j-castellanos
Copy link
Copy Markdown
Author

Giving it a try @ljharb 🙏

@j-castellanos

This comment was marked as resolved.

"eslint": "^7.32.0 || ^8.2.0",
"eslint-find-rules": "^4.1.0",
"eslint": "^7.32.0 || ^8.2.0 || ^9.0.0",
"eslint-find-rules": "^5.0.0",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

eslint-find-rules v5 doesn't support eslint 7, so this will have to be ^4.1.0 || ^5.0.0

"dependencies": {
"confusing-browser-globals": "^1.0.11"
"confusing-browser-globals": "^1.0.11",
"globals": "^15.14.0"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why is globals needed? eslint ships with that package and we should be using the same version it uses.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@ljharb without it being in the package.json we fail the no extraneous dependencies check due to the import. So I put it as a peer dependency. Otherwise I could either disable the rule or use the raw values instead of from globals. Let me know if you want a different change

"eslint": "^7.32.0 || ^8.2.0",
"eslint-find-rules": "^4.1.0",
"eslint": "^7.32.0 || ^8.2.0 || ^9.0.0",
"eslint-find-rules": "^5.0.0",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same here

@j-castellanos
Copy link
Copy Markdown
Author

@ljharb let me know your thoughts with the changes

@j-castellanos j-castellanos requested a review from ljharb April 6, 2026 22:02
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