-
Notifications
You must be signed in to change notification settings - Fork 15
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(dependencies): update plugins and remove eslint@7 support #121
Conversation
BREAKING CHANGE: Require minimum of eslint 8 and node 16 required to fix bug in node 18
BREAKING CHANGE: eslint-config-prettier All configs merged into prettier BREAKING CHANGE: esling-plugin-prettier Drop support for eslint 5/6, prettier 1, node 6/8
@dogpatch626 I think an admin will have to update the required checks to merge this. |
package.json
Outdated
}, | ||
"peerDependencies": { | ||
"eslint": "^7.32.0 || ^8.8.0", | ||
"eslint": "^8.42.0", | ||
"eslint-plugin-jest": "^24.1.3 || ^25.7.0 || ^26.0.0 || ^27.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.
This isn't working with eslint-plugin-jest@24
$ npm i --save-dev eslint-plugin-jest@25
added 6 packages, removed 1 package, changed 6 packages, and audited 2299 packages in 16s
$ npm run test:lint
> my-root@1.0.0 test:lint
> eslint --ignore-path .gitignore --ext js,jsx,snap .
$ npm i --save-dev eslint-plugin-jest@24
added 1 package, removed 6 packages, changed 6 packages, and audited 2294 packages in 15s
$ npm run test:lint
> my-root@1.0.0 test:lint
> eslint --ignore-path .gitignore --ext js,jsx,snap .
Oops! Something went wrong! :(
ESLint: 8.42.0
TypeError: Failed to load plugin 'jest' declared in '__tests__/.eslintrc.json » eslint-config-amex/prettier/test': Class extends value undefined is not a constructor or null
Referenced from: /redacted/node_modules/eslint-config-amex/prettier/test.js
"eslint-plugin-jest": "^24.1.3 || ^25.7.0 || ^26.0.0 || ^27.0.0", | |
"eslint-plugin-jest": "^25.7.0 || ^26.0.0 || ^27.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.
It's not clear to me why this is breaking based on the breaking changes in v25:
https://github.com/jest-community/eslint-plugin-jest/releases/tag/v25.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.
I'm using node v16.17.1
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.
Hey, appreciate you looking into this aswell. I was looking when I stumbled across this thread jest-community/eslint-plugin-jest#940 and installed 25.1.0 and npm run test:lint seems to run fine so far. going to test a little more
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.
Oh good call, yeah, it's not a breaking change for them to support a new major of a dependency.
https://github.com/jest-community/eslint-plugin-jest/releases/tag/v25.1.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.
Yea so just going to drop 24 from peer deps as this is dropping 7 anyways and 25 is the official support of eslint 8
# [16.0.0](v15.3.2...v16.0.0) (2023-06-15) ### Features * **dependencies:** update plugins and remove eslint@7 support ([#121](#121)) ([85cae7e](85cae7e)) ### BREAKING CHANGES * **dependencies:** Require minimum of eslint 8 and node 16 required to fix bug in node 18 * **dependencies:** eslint-config-prettier All configs merged into prettier * **dependencies:** esling-plugin-prettier Drop support for eslint 5/6, prettier 1, node 6/8
🎉 This PR is included in version 16.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
BREAKING CHANGES:
update to eslint-plugin-unicorn 47.0.0
update eslint-config-prettier v8
esling-plugin-prettier
Please make sure that the PR fulfills these requirements
Motivation and Context
How Has This Been Tested?
Types of changes