feat: minimum version eslint v9 #234
Merged
+76
−112
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.
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.