Upgrade to ESLint v10 and @eslint/js v10#542
Merged
Conversation
- Bump eslint from ^9.39.1 to ^10.0.1 - Bump @eslint/js from ^9.39.1 to ^10.0.1 - Remove eslint-plugin-jsx-a11y (no eslint v10 support yet, unused in config) - Remove @typescript-eslint/parser (redundant, typescript-eslint provides it) - Fix preserve-caught-error violations (new in v10 recommended config) - Replace no-explicit-any with proper types (unknown, Record<string, unknown>) - Remove unused Speaker type import in Event.vue - Rename timezone import to avoid vue/no-dupe-keys collision in EventDate.vue - Suppress triple-slash-reference in Astro-generated env.d.ts Closes #541
✅ Deploy Preview for eventua11y ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades ESLint and @eslint/js from v9 to v10. Closes #541.
^9.39.1->^10.0.1^9.39.1->^10.0.1Changes
Dependency updates
eslintand@eslint/jsto v10eslint-plugin-jsx-a11y— no eslint v10 support yet, and it was installed but not configured ineslint.config.mjs@typescript-eslint/parser— redundant sincetypescript-eslintalready provides itLint fixes for new/updated rules
preserve-caught-error(new in v10 recommended): Added{ cause: error }to all re-thrown errors in edge functions to preserve error chains@typescript-eslint/no-explicit-any: Replacedanytypes withunknown/Record<string, unknown>in edge functions@typescript-eslint/no-unused-vars: Removed unusedSpeakertype import inEvent.vuevue/no-dupe-keys: Renamedtimezonedayjs plugin import totimezonePlugininEventDate.vueto avoid collision with thetimezoneprop@typescript-eslint/triple-slash-reference: Added eslint-disable for Astro's standardenv.d.tstriple-slash referencesNo config changes needed
The existing
eslint.config.mjsalready uses flat config format, so the biggest v10 breaking change (removal of eslintrc support) doesn't apply.Verification
^20.19.0 || ^22.13.0 || >=24. CI useslts/*(Node 22) which satisfies this.