-
Notifications
You must be signed in to change notification settings - Fork 91
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: minimum version eslint v9 #234
Conversation
BREAKING CHANGE: Support ESLint v9 and above only Support for ESlint v7 & v8 is removed languageOptions ecmaVersion: 2019 and sourceType: module are removed from eslint-plugin-cypress/flat config globals is updated to 15.11.0 eslint-plugin-n is updated to 17.11.1
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the v7 test requirement on the branch
🎉 This PR is included in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you very much! |
ecmaVersion
#215 for flat config onlyIssue
ESLint versions <
v9
are no longer supported (see https://eslint.org/version-support/). eslint-plugin-cypress cannot rely on unsupported ESLint versions.Changes
Support for ESLint
v7
andv8
is removed.Update
peerDependencies
in package.json to"eslint": ">=9"
Delete
test-v7
from circle.ymlUpdate globals to 15.11.0
Update eslint-plugin-n to 17.11.1
Remove
languageOptions
ecmaVersion: 2019
andsourceType: module
from theeslint-plugin-cypress/flat
configUninstall explicit
@eslint/eslintrc
and@eslint/js
(installed automatically as dependency ofeslint
)Update documentation
Notes
ci/circleci: test-v7
must be removed from branch protection rules. It is no longer used.ci/circleci: test-v8
remains.ESLint
v8
is still used in circle.yml for thetest:legacy
script, since legacy configurations are still supported by ESLintv9
.The v8 RuleTester is however needed for legacy configurations as the v9 RuleTester only tests flat configurations. The blog post eslintrc removed in ESLint v10.0.0 announced plans to remove legacy configurations in ESLint
v10
scheduled for end of 2024 or early 2025. At the latest, at this point, eslint-plugin-cypress should follow suit and remove support for legacy configurations.