-
Notifications
You must be signed in to change notification settings - Fork 140
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 8.x #465
Conversation
acb32a1
to
26e24bd
Compare
e098920
to
f7932d8
Compare
26e24bd
to
3ccb5fe
Compare
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.
Some tweaks and we should get support for ESLint 8 ready.
be2ec67
to
c8d3a53
Compare
c8d3a53
to
eae87b7
Compare
.eslintrc.json
Outdated
/** Temporary disable eslint-config-kentcdodds until it supports ESLint v8 | ||
* This package is a dependency of eslint-config-kentcdodds, so because it's | ||
* a devDependency to our package, we need to support ESLint v8 first. | ||
*/ | ||
// 'kentcdodds', |
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.
Ok so rather than this, since other plugins are failing with ESLint v8 too, it would be better to stick to ESLint v7 in our dev dependencies so we don't block the release of our v5 for some dev dependencies.
Let's downgrade ESLint to v7 in our dev dependencies then, re-enable kentcdodds
plugin, and move the list of pending plugins to be compatible with ESLint v8 to a separate issue so when all are ready we can upgrade to v8 in our dev dependencies.
@@ -52,7 +52,7 @@ jobs: | |||
strategy: | |||
matrix: | |||
node: [12.22.0, 12, 14.17.0, 14, '16.0', 16] | |||
eslint: [7.5, 7] | |||
eslint: [7.5, 7, 8] |
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.
By running this we make sure our plugin works for both ESLint v7 and v8 even if we use v7 in dev dependencies.
package.json
Outdated
"cpy-cli": "^3.1.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-kentcdodds": "^19.1.1", | ||
"eslint": "^8.0.0", |
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.
As mentioned in previous comment, let's put this back to v7 so we can go ahead with the release of our plugin v5:
"eslint": "^8.0.0", | |
"eslint": "^7.32.0", |
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.
Forgot to set the proper review status 😅
We need to separate ESLint the dev dependency from ESLint the peer dependency so we can go ahead with the plugin v5.
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 did the requested changes myself @MichaelDeBoey!
I'm moving to a different PR the upgrade of ESLint v8 in the dev dependencies, with all the list of pending plugins to get updated.
🎉 This PR is included in version 5.0.0-alpha.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
ESLint v8.0.0 is released 🎉
Dependencies should be compatible with ESLint 8 too before we can merge this one:
@typescript-eslint/experimental-utils
(Support for ESLint v8 typescript-eslint/typescript-eslint#3738)meta.docs.category
from rules typescript-eslint/typescript-eslint#3800PrivateIdentifier
typescript-eslint/typescript-eslint#3808v5.0.0
devDependency compatibility with ESLint 8:
@typescript-eslint/eslint-plugin
(Support for ESLint v8 typescript-eslint/typescript-eslint#3738)meta.docs.category
from rules typescript-eslint/typescript-eslint#3800PrivateIdentifier
typescript-eslint/typescript-eslint#3808v5.0.0
@typescript-eslint/parser
(Support for ESLint v8 typescript-eslint/typescript-eslint#3738)meta.docs.category
from rules typescript-eslint/typescript-eslint#3800PrivateIdentifier
typescript-eslint/typescript-eslint#3808v5.0.0
eslint-config-kentcdodds
(Support ESLint 8.x kentcdodds/eslint-config-kentcdodds#117)eslint-config-prettier
(Support ESLint 8.x prettier/eslint-config-prettier#200)Releaseeslint-plugin-import
(Support ESLint 8.x import-js/eslint-plugin-import#2211)v2.25.0
eslint-plugin-jest
(Support ESLint 8.x jest-community/eslint-plugin-jest#881)hasSuggestion
for ESLint v8 jest-community/eslint-plugin-jest#898hasSuggestions
rather thanhasSuggestion
jest-community/eslint-plugin-jest#899eslint@8
jest-community/eslint-plugin-jest#940@typescript-eslint/experimental-utils
to v5 jest-community/eslint-plugin-jest#941@typescript-eslint/eslint-plugin@5
jest-community/eslint-plugin-jest#942v24.4.1
v24.4.2
v25.0.0
v25.0.4
v25.0.5
v25.1.0
eslint-plugin-jest-formatting
(Support ESLint 8.x dangreenisrael/eslint-plugin-jest-formatting#107)v3.1.0
eslint-plugin-node
(Support ESLint 8.x mysticatea/eslint-plugin-node#294)eslint-plugin-prettier
(Support ESLint 8.x prettier/eslint-plugin-prettier#427)Releaseeslint-plugin-promise
(Support ESLint 8.x eslint-community/eslint-plugin-promise#218)v6.0.0
Closes #462