Skip to content

chore: migrate eslint 9 → 10 #347

Closed

Description

@Snoww3d

Context

Dependabot PR #340 bumps eslint from 9.39.2 to 10.0.0 but CI fails (frontend tests, lint, and Docker build all broken).

What needs to happen

ESLint 10 is a major version with breaking changes. Likely needs:

  • Config format updates (eslint.config.js)
  • Plugin compatibility checks (@typescript-eslint, react-refresh)
  • Potential rule API changes

References

Activity

  1. added
    tech-debt
    on Feb 14, 2026
  2. Snoww3d commented on Feb 22, 2026

    @Snoww3d
    OwnerAuthor

    Status Update — Feb 2026

    eslint 10 migration is blocked by eslint-plugin-react.

    What happened

    Upstream tracking

    What we did do

    Next steps

    • Monitor the upstream issue for a compatible eslint-plugin-react release
    • Once available, reopen eslint 10 migration
  3. Snoww3d commented on Feb 22, 2026

    @Snoww3d
    OwnerAuthor

    Deep Research — ESLint 10 Ecosystem Readiness (Feb 22, 2026)

    Our plugin stack vs ESLint 10

    Plugin Our Version ESLint 10? Details
    @eslint/js ^9.17.0 ✅ Yes Part of eslint core
    @typescript-eslint/* ^8.56.0 ✅ Yes PR #12057 merged Feb 13
    eslint-plugin-react ^7.37.2 ❌ Crashes PR #3979 open, under review, no timeline
    eslint-plugin-react-hooks ^7.0.1 ⚠️ Runtime OK, peerDep wrong PR #35720 merged Feb 13, awaiting npm publish
    eslint-plugin-react-refresh ^0.5.0 ❓ Unknown No tracking issue found

    Why eslint-plugin-react crashes

    ESLint 10 removed deprecated context methods (context.getFilename() → context.filename, context.getSourceCode() → context.sourceCode, etc.). The plugin uses context.getFilename() in its internal version detection utility — not in rule create() functions — so the @eslint/compat fixupPluginRules() shim does not fix it.

    Maintainer position (ljharb, Feb 7): "we're explicitly not compatible with eslint 10. until the peer dep range is updated, one should not attempt to use eslint 10 with this plugin"

    PR #3979 is open with change requests. No merge timeline.

    ESLint 10 itself

    Primarily a cleanup release — removes APIs deprecated in v9, drops legacy .eslintrc config entirely. No must-have new features. ESLint 9 continues active maintenance (v9.39.x, Feb 2026).

    Two paths forward

    Path A: Wait (current plan) — Stay on eslint 9. Monitor upstream. Zero effort, zero risk.

    Path B: Replace eslint-plugin-react with @eslint-react/eslint-plugin — A modern rewrite (v2.12.0+ supports eslint 10, 4-7x faster, actively maintained). Requires eslint config rewrite since rule names differ. Unblocks eslint 10 without waiting on upstream.

    Upstream issues to monitor

  4. added a commit that references this issue on Feb 22, 2026
    55c7383
  5. added a commit that references this issue on Feb 22, 2026
    b44d59b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions