-
Notifications
You must be signed in to change notification settings - Fork 147
feat: support ESLint 8.x #465
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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. |
||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -42,25 +42,24 @@ | |||||
"prepare": "is-ci || husky install" | ||||||
}, | ||||||
"dependencies": { | ||||||
"@typescript-eslint/experimental-utils": "^4.30.0" | ||||||
"@typescript-eslint/experimental-utils": "^5.0.0" | ||||||
}, | ||||||
"devDependencies": { | ||||||
"@babel/eslint-plugin": "^7.14.5", | ||||||
"@commitlint/cli": "^13.2.1", | ||||||
"@commitlint/config-conventional": "^13.2.0", | ||||||
"@types/jest": "^27.0.2", | ||||||
"@types/node": "^16.10.6", | ||||||
"@typescript-eslint/eslint-plugin": "^4.30.0", | ||||||
"@typescript-eslint/parser": "^4.30.0", | ||||||
"@typescript-eslint/eslint-plugin": "^5.0.0", | ||||||
"@typescript-eslint/parser": "^5.0.0", | ||||||
"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 commentThe 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:
Suggested change
|
||||||
"eslint-config-prettier": "^8.3.0", | ||||||
"eslint-plugin-import": "^2.24.2", | ||||||
"eslint-plugin-jest": "^24.4.0", | ||||||
"eslint-plugin-import": "^2.25.2", | ||||||
"eslint-plugin-jest": "^25.0.6", | ||||||
"eslint-plugin-jest-formatting": "^3.0.0", | ||||||
"eslint-plugin-node": "^11.1.0", | ||||||
"eslint-plugin-prettier": "^3.4.1", | ||||||
"eslint-plugin-prettier": "^4.0.0", | ||||||
"eslint-plugin-promise": "^5.1.0", | ||||||
"husky": "^7.0.2", | ||||||
"is-ci": "^3.0.0", | ||||||
|
@@ -73,7 +72,7 @@ | |||||
"typescript": "^4.4.4" | ||||||
}, | ||||||
"peerDependencies": { | ||||||
"eslint": "^7.5.0" | ||||||
"eslint": "^7.5.0 || ^8.0.0" | ||||||
}, | ||||||
"engines": { | ||||||
"node": "^12.22.0 || ^14.17.0 || >=16.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.
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.