-
Notifications
You must be signed in to change notification settings - Fork 92
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: support eslint v7 & v8 instead of ">= 3.2.1" #176
feat: support eslint v7 & v8 instead of ">= 3.2.1" #176
Conversation
|
This comment was marked as resolved.
This comment was marked as resolved.
@MikeMcC399 I removed and added the required status checks. |
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.
Looks good.
ESLint 8 in CircleCI is successful with warnings. The warnings are expected and can be ignored. |
c5bbc3c
to
8bc8170
Compare
BREAKING CHANGE: Support ESLint v7 and v8 only Support for ESlint v3, v4, v5 & v6 is removed ESLint v9 is not yet supported Co-Authored-By: Jennifer Shehane <[email protected]>
8bc8170
to
bafb3b6
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Thank you for merging! The merge was successful, however the release |
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: Support ESLint v7 and v8 only
Issue
The
eslint-plugin-cypress
plugin currently definespeerDependencies
of"eslint": ">= 3.2.1"
. This includes versions of ESLintv3
,v4
andv9
which are not compatible with the current latest version of[email protected]
(including its otherpeerDependencies
). ESLintv8
cannot be linted by@cypress/eslint-plugin-dev
and replacement linting recommended by Linting a Plugin only covers ESLintv7
and above.The intersection of supportable combinations is ESLint
v7
andv8
only.Change
Support ESlint
v7
&v8
instead of all versions from ESLint3.2.1
upwards.To allow this repo to use up-to-date linting plugins and prepare the path for migration to ESLint
v9
this PR triggers a new major version which supports ESLintv7
andv8
only. Earlier legacy versionsv3
-v6
are dropped. The as-yet incompatible ESLintv9
is blocked from inadvertent usage. (See ESLint v9.0.0 released announcement dated Apr 5, 2024.)v7
orv8
are prerequisites and that ESLintv9
is not supported yet. References to ESLintv4
andv5
are removed.peerDependencies
now define"eslint": ">=7 <9"
test-v7
test-v8
Verification
Ubuntu
22.04.4
LTS Node.js20.12.2
mkdir eslint-plugin-cypress-test cd eslint-plugin-cypress-test git init npm init -y npm install eslint@8 MikeMcC399/eslint-plugin-cypress#support-eslint-7-and-8 -D
shows:
The following correctly reports an error: