Skip to content
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

Merged
merged 6 commits into from
Jun 15, 2023

Conversation

dogpatch626
Copy link
Member

@dogpatch626 dogpatch626 commented Jun 12, 2023

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

  • I checked that there aren't other open Pull Requests for the same update/change.
  • My code follows the code style of this project.
  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • Rule changes includes a comment to describe the reasoning behind the change.
  • PR contains a single rule change.

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

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
@smackfu
Copy link
Member

smackfu commented Jun 13, 2023

@dogpatch626 I think an admin will have to update the required checks to merge this.

@JAdshead JAdshead requested a review from a team June 14, 2023 17:44
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",
Copy link
Member

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

> [email protected] 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

> [email protected] 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
Suggested change
"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",

Copy link
Member

@smackfu smackfu Jun 14, 2023

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

Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member Author

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

@smackfu smackfu requested a review from a team June 14, 2023 19:06
@dogpatch626 dogpatch626 requested a review from smackfu June 15, 2023 13:58
@smackfu smackfu requested a review from a team June 15, 2023 14:46
@smackfu smackfu changed the title Feat/update eslint feat(dependencies): update prettier and unicorn and remove eslint@7 support Jun 15, 2023
@smackfu smackfu changed the title feat(dependencies): update prettier and unicorn and remove eslint@7 support feat(dependencies): update plugins and remove eslint@7 support Jun 15, 2023
@JAdshead JAdshead merged commit 85cae7e into main Jun 15, 2023
4 checks passed
@JAdshead JAdshead deleted the feat/update-eslint branch June 15, 2023 18:28
oneamexbot added a commit that referenced this pull request Jun 15, 2023
# [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
@oneamexbot
Copy link
Contributor

🎉 This PR is included in version 16.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants