chore: upgrade ESLint 8→9, migrate to flat config#42
Merged
Conversation
- Upgrade eslint ^8→^9, eslint-plugin-vue ^8→^10, @vue/eslint-config-prettier ^9→^10 - Add globals, vue-eslint-parser as direct devDependencies (required by pnpm strict resolution) - Replace eslintConfig in package.json and src/.eslintrc.js with eslint.config.mjs (flat config) - Switch to flat/vue2-essential config preset (Vue 2 project) - Update lint script: drop --ext flag (removed in ESLint 9), use eslint src directly - Silence vue/no-reserved-component-names for Header component (rename is separate task) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tensions option to ESLint 9 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
eslint^8 → ^9,eslint-plugin-vue^8 → ^10,@vue/eslint-config-prettier^9 → ^10eslintConfiginpackage.jsonandsrc/.eslintrc.jswitheslint.config.mjs(ESLint 9 flat config format)vue-eslint-parserandglobalsas direct devDependencies (required by pnpm's strict package isolation)flat/vue2-essentialpreset (correct preset for a Vue 2 project)--extflag was removed in ESLint 9, changed toeslint srcvue/no-reserved-component-namesforHeadercomponent — renaming is a separate follow-up taskTest plan
pnpm lintpasses with no errorspnpm buildcompiles without issues🤖 Generated with Claude Code