chore(lint): upgrade ESLint to v10, migrate to @eslint-react#2679
Merged
DerekRoberts merged 2 commits intomainfrom Apr 18, 2026
Merged
chore(lint): upgrade ESLint to v10, migrate to @eslint-react#2679DerekRoberts merged 2 commits intomainfrom
DerekRoberts merged 2 commits intomainfrom
Conversation
…eact - Upgrade eslint to ^10.2.0, @eslint/js to ^10.0.1, typescript-eslint to ^8.58.2 - Replace eslint-plugin-react (v7, ESLint v10 incompatible) with @eslint-react/eslint-plugin - Rewrite frontend/eslint.config.mjs using @eslint-react recommended-typescript preset - Update package-lock.json for both frontend and backend Closes #2654
Contributor
There was a problem hiding this comment.
Pull request overview
Upgrades the repo’s ESLint toolchain to ESLint v10 and updates the frontend React linting setup to use @eslint-react/eslint-plugin (compatible with ESLint v10), along with lockfile refreshes.
Changes:
- Bump ESLint /
@eslint/js/typescript-eslintversions in bothfrontend/andbackend/. - Migrate frontend linting from
eslint-plugin-react(+hooks) to@eslint-react/eslint-pluginand refactorfrontend/eslint.config.mjs. - Refresh
backend/package-lock.jsonto reflect updated dependency resolution.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| frontend/package.json | Updates ESLint-related devDependencies and swaps React lint plugin to @eslint-react/eslint-plugin. |
| frontend/eslint.config.mjs | Refactors flat config structure and applies @eslint-react recommended TypeScript config. |
| backend/package.json | Bumps ESLint-related devDependencies to the requested versions. |
| backend/package-lock.json | Updates lockfile resolution (includes broader dependency bumps beyond lint packages). |
Files not reviewed (1)
- backend/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Remove unused @eslint/js from frontend devDependencies - Add engines.node >=22 constraint to both packages (@eslint-react requires Node 22+) - Fix flat config spreading: use ...tseslint.configs.recommended - eslintReact.configs['recommended-typescript'] is a config object, not array - Backend lockfile unchanged beyond engines field; frontend lockfile reflects removed packages
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 the ESLint ecosystem to v10 and migrates the frontend from
eslint-plugin-react(v7, incompatible with ESLint v10) to@eslint-react/eslint-plugin.Changes
Frontend
eslint: ^9.38.0→^10.2.0@eslint/js: ^9.38.0→^10.0.1typescript-eslint: ^8.58.0→^8.58.2eslint-plugin-react,eslint-plugin-react-hooks@eslint-react/eslint-plugin(ESLint v10 compatible)frontend/eslint.config.mjs:@eslint-react/configs['recommended-typescript']frontend/package-lock.jsonBackend
eslint: ^10.0.0→^10.2.0@eslint/js: ^10.0.0→^10.0.1typescript-eslint: ^8.58.0→^8.58.2backend/package-lock.jsonVerification
npm run lintpasses in bothfrontend/andbackend/during development.Related
eslintand@eslint/jsto v10, but was blocked due toeslint-plugin-reactincompatibility)eslint-plugin-reactdoes not support ESLint v10 (tracked in ESLint v10 compatibility jsx-eslint/eslint-plugin-react#3977)@eslint-react/eslint-pluginis the recommended migration path for ESLint v10 React projectsThanks for the PR!
Deployments, as required, will be available below:
Please create PRs in draft mode. Mark as ready to enable:
After merge, new images are deployed in: