Skip to content
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

feat: Add support for ESLint v9 #356

Closed
wants to merge 8 commits into from

Conversation

lotmek
Copy link
Contributor

@lotmek lotmek commented Oct 6, 2024

Description

Continuing the flat config support in v9 #351

  • Add support for ESLint v9 by using LegacyESLint class when it is defined
  • Update documentation to explain v9 support
  • Add ESLint v9 to Node compatibility workflow, ignoring the versions that don't match ^18.18.0 || ^20.9.0 || >=21.1.0
  • Replace .eslintignore by ignorePatterns at the root level of the project to remove warning message in the tests

@ljharb
Copy link
Collaborator

ljharb commented Oct 7, 2024

Unfortunately this is a duplicate of #353. Please leave this PR open so I can keep both in sync (in the future, instead of opening a duplicate PR, please comment with a link to commits on the existing one, and I can pull them in)

@ljharb ljharb marked this pull request as draft October 7, 2024 05:45
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

I don't see any tests here.

Can you rebase these changes on top of #353 and ensure there's adequate passing tests?


You'll probably also need to add `--ext .js, .cjs, .mjs` if you're working with one of the new Javascript filename extensions in your project.

<u>**Note:**</u> ESLint v9 support requires a recent version of Node.JS: `^18.18.0 || ^20.9.0 || >=21.1.0`, as mentionned in the [ESLint documentation](https://eslint.org/docs/latest/use/migrate-to-9.0.0#-nodejs--v1818-v19-are-no-longer-supported).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<u>**Note:**</u> ESLint v9 support requires a recent version of Node.JS: `^18.18.0 || ^20.9.0 || >=21.1.0`, as mentionned in the [ESLint documentation](https://eslint.org/docs/latest/use/migrate-to-9.0.0#-nodejs--v1818-v19-are-no-longer-supported).
<u>**Note:**</u> ESLint v9 support requires a recent version of Node.JS: `^18.18.0 || ^20.9.0 || >=21.1.0`, as mentioned in the [ESLint documentation](https://eslint.org/docs/latest/use/migrate-to-9.0.0#-nodejs--v1818-v19-are-no-longer-supported).

@@ -49,8 +49,9 @@
"codecov": "^2.3.1",
"commitizen": "^2.10.1",
"create-require": "^1.1.1",
"cross-env": "^7.0.3",
Copy link
Collaborator

Choose a reason for hiding this comment

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

unfortunately we support 10.12, and cross-env 7 requires 10.14. we can use v6 tho.

Suggested change
"cross-env": "^7.0.3",
"cross-env": "^6.0.3",

@lotmek
Copy link
Contributor Author

lotmek commented Oct 8, 2024

Hello @ljharb @yutak23,
Can you please take a look at my PR lotmek#1 ?
I will bring the test data for ESLint v9 and split the tests between legacy and flat config

@robvdl robvdl mentioned this pull request Dec 7, 2024
14 tasks
@ljharb
Copy link
Collaborator

ljharb commented Jan 20, 2025

I believe this is now obviated by #353.

@ljharb ljharb closed this Jan 20, 2025
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