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 to typescript-eslint 8.19 #7382

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pjonsson
Copy link
Contributor

What this PR does

This depends on: #7351, #7364, #7190, #7366, and #7380.

This relates to: #7381 that upgrades the other eslint plugins to the most recent version.

This PR will only pass the CI after all the PRs it depends on are merged.

This updates to typescript-eslint 8.18, which is required for not getting a giant warning about using a more recent TypeScript than 5.4.

Besides bumping the version, this PR also converts to a new rule name in a pre-existing suppression, and adds some new suppressions in places that were hard to fix for me. The added suppressions aren't ideal, but they will allow this PR to pass the CI so it can be merged and prevent further lint issues getting added to the main branch.

Test me

Run yarn gulp lint, so tested by CI.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

@pjonsson pjonsson mentioned this pull request Dec 16, 2024
4 tasks
@pjonsson pjonsson force-pushed the upgrade-typed-eslint branch from 5d16f67 to 06b2041 Compare December 16, 2024 13:08
@@ -935,6 +935,7 @@ export default class Terria {
addShareKey(id: string, shareKey: string): void {
if (id === shareKey || this.shareKeysMap.has(shareKey)) return;
this.shareKeysMap.set(shareKey, id);
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These x ?? y constructs are permitted with ESLint 9.17, so the directive will disappear when upgrading ESLint.

@pjonsson pjonsson force-pushed the upgrade-typed-eslint branch from 06b2041 to 4b38c3c Compare January 2, 2025 13:30
@pjonsson pjonsson changed the title Update to typescript-eslint 8.18 Update to typescript-eslint 8.19 Jan 2, 2025
@pjonsson pjonsson mentioned this pull request Jan 2, 2025
4 tasks
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.

1 participant