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

Update eslint plugin versions #420

Merged
merged 1 commit into from
May 18, 2024
Merged

Update eslint plugin versions #420

merged 1 commit into from
May 18, 2024

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented May 17, 2024

Major updates:

  • Update required node version to 18.20.0
  • Update required eslint version to ^8.56.0
  • Update @typescript-eslint/eslint-plugin to ^7.9.0
  • Update eslint-plugin-jest to ^28.5.0
  • Update eslint-config-prettier to ^9.1.0

The node and eslint version bumps are a result of updating @typescript-eslint/eslint-plugin to v7.


Most notably, updating @typescript-eslint/eslint-plugin fixes the WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree. warnings when using Typescript 5.4.0 and above

@BPScott BPScott force-pushed the eslintbump branch 2 times, most recently from f481403 to e1c7a84 Compare May 17, 2024 00:55
@BPScott
Copy link
Member Author

BPScott commented May 17, 2024

Uugh, I'm gonna need somebody with adminship to remove "Test (16.x)" as a required commit, as eslint will now no longer run on node 16 (which has been EOL for the last 6 months anyway).

@BPScott
Copy link
Member Author

BPScott commented May 17, 2024

/snapit

@BPScott
Copy link
Member Author

BPScott commented May 17, 2024

/snapit

Copy link
Contributor

🫰✨ Thanks @BPScott! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/eslint-plugin": "0.0.0-snapshot-20240517012000"

@BPScott
Copy link
Member Author

BPScott commented May 17, 2024

Working pretty well over here: https://github.com/Shopify/checkout-web/pull/34071

Main gotcha is that jest/no-conditional-in-test catches a bunch more cases compared to jest/no-if, so updating will require a bunch of ignoring those new violations.

Major updates:
- Update required node version to `18.20.0`
- Update required eslint version to `^8.56.0`
- Update `@typescript-eslint/eslint-plugin` to `^7.9.0`
- Update `eslint-plugin-jest` to `^28.5.0`
- Update `eslint-config-prettier` to `^9.1.0`
@BPScott BPScott merged commit 32e249f into main May 18, 2024
4 checks passed
@BPScott BPScott deleted the eslintbump branch May 18, 2024 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant