chore(deps): upgrade eslint to v10 and fix lint errors - #611
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades the frontend linting toolchain to ESLint v10, updates the flat ESLint config ignore patterns, and applies small code cleanups to satisfy the new lint rules (including fixing a missing toast import).
Changes:
- Bump
eslintand@eslint/jsto v10 (plus lockfile refresh) and add anoverridesentry foreslint-plugin-react. - Update
frontend/eslint.config.jsignores to exclude build output and Cypress/config files. - Fix/clean up frontend component lint issues (unused React imports, hook deps, and missing
toastimport).
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/components/NotFound.jsx | Removes unused React import and fixes unescaped apostrophe in JSX text. |
| frontend/src/components/LeftDrawer.jsx | Removes unused icon and useState imports. |
| frontend/src/components/FormComponent.jsx | Removes unused React default import/unused state setter and adjusts useEffect deps. |
| frontend/src/components/EditForm.jsx | Removes unused React imports/state setter and adds missing toast import. |
| frontend/package.json | Upgrades ESLint deps to v10 and adds an override to align peer dependency resolution. |
| frontend/package-lock.json | Updates lockfile for ESLint v10 dependency tree. |
| frontend/eslint.config.js | Expands ignore globs for dist/Cypress/config files. |
| frontend/env.js | Removes now-unnecessary eslint-disable comment. |
Files not reviewed (1)
- frontend/package-lock.json: Generated file
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.
This PR replaces #608. It upgrades eslint and @eslint/js to v10, configures proper ESLint ignores for Cypress and build config files, and fixes existing lint errors (including a missing toast import in EditForm.jsx).
Supercedes #608
Thanks for the PR!
Any successful deployments (not always required) will be available below.
API available
Frontend available
Once merged, code will be promoted and handed off to following workflow run.
Main Merge Workflow