Skip to content

Migrate ESLint to flat config and bump to v10 #64

Closed

Description

@c-vigo

Description

eslint v10 (#53) cannot land as a dependency bump. ESLint 9 made flat config
(eslint.config.*) the default; ESLint 10 removed the legacy .eslintrc path
entirely
, and this repo still ships .eslintrc.json:

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.
From ESLint v9.0.0, the default configuration file is now eslint.config.js.

ESLINT_USE_FLAT_CONFIG=false no longer works either — the escape hatch is gone in v10.

Why it is unblocked now

Until #57 landed, there was a second, harder blocker: the pinned
@[email protected] hard-crashed under ESLint 10, because its bundled
[email protected] produces a scope manager that ESLint 10's SourceCode.finalize()
no longer accepts:

TypeError: scopeManager.addGlobals is not a function
    at addDeclaredGlobals (eslint/lib/languages/js/source-code/source-code.js:221:15)

#57 bumped typescript-eslint to 8.64.0, whose peer range is
eslint: ^8.57.0 || ^9.0.0 || ^10.0.0. So the plugin side is ready; only the config
format is left.

Scope

  • Migrate .eslintrc.json → flat config (eslint.config.mjs), preserving the current
    rule set exactly: eslint:recommended + plugin:@typescript-eslint/recommended,
    with @typescript-eslint/no-explicit-any: warn and
    @typescript-eslint/explicit-function-return-type: off, and the node / es6 /
    jest environments (which become globals in flat config).
  • Bump eslint 8.57 → 10.x.
  • No behavior change intended. Any new lint findings are from the
    @typescript-eslint 6 → 8 rule-set change that already landed in chore(deps): batch six Renovate dev-dependency updates #57, and should be
    triaged explicitly rather than silently suppressed.

Node 24 (the dev-shell and the action runtime) satisfies ESLint 10's engines
(^20.19.0 || ^22.13.0 || >=24).

Notes

Renovate's #53 is additionally DOA as-is: it bumped package.json without
regenerating package-lock.json (its own npm install hit the typescript-eslint 6
peer conflict), so npm ci fails before ESLint even runs —
Invalid: lock file's [email protected] does not satisfy [email protected]. This issue
supersedes it.

Related

Activity

  1. added
    enhancement
    on Jul 14, 2026
  2. added a commit that references this issue on Jul 14, 2026
    2595718
  3. c-vigo commented on Jul 14, 2026

    @c-vigo
    ContributorAuthor

    Done — implemented by #65, merged into dev.

    .eslintrc.json is replaced by eslint.config.mjs, eslint is on v10, and @typescript-eslint/eslint-plugin + @typescript-eslint/parser are consolidated into the typescript-eslint meta package (the canonical v8 flat-config entry point). The rule set is a faithful port — same base configs, same two overrides, and the node/es6/jest environments re-expressed as languageOptions.globals.

    Verified before merge: npx eslint src lints all 8 source files with rules firing (confirmed with a negative control — an injected violation was caught, so the config is not silently linting nothing); tsc clean; 84/84 tests pass; full prek suite green.

    Closing manually: #65 merged into dev, not the default branch, so GitHub's Closes #64 keyword did not fire. That applies to every issue resolved by a PR into dev in this flow.

    Follow-up spun out of this work: #66 — npm run lint and npm run format only ever check one file, because sh has no globstar and src/**/*.ts collapses to src/*/*.ts. The production source has never been linted. That is pre-existing and deliberately not folded in here.

  4. added a commit that references this issue on Jul 15, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions