Skip to content

Upgrade ESLint 9 → 10 (breaking changes) #285

@Blb3D

Description

@Blb3D

Context

Dependabot PR #272 attempted to bump @eslint/js from 9.x to 10.x, but CI fails — frontend lint/build breaks.

Breaking Changes in ESLint 10

  • Node.js >= 20.19 required
  • Config file lookup changed: starts from linted file directory, not CWD
  • JSX elements treated as references: no-unused-vars may flag new issues with component imports
  • Legacy .eslintrc completely removed (we already use flat config — OK)
  • Deprecated context methods removed (affects custom rules/plugins)

Required Changes

  1. Bump eslint from ^9.x to ^10.x
  2. Bump @eslint/js to ^10.x
  3. Verify Node.js version in CI >= 20.19
  4. Verify plugin compatibility: eslint-plugin-react-hooks, eslint-plugin-react-refresh, eslint-plugin-storybook
  5. Run npm run lint and fix any new errors from JSX reference tracking
  6. Test config file lookup behavior in monorepo structure

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions