Skip to content

build(deps-dev): bump ESLint to v10 with flat config#345

Open
caugner wants to merge 2 commits into
mainfrom
eslint-v10
Open

build(deps-dev): bump ESLint to v10 with flat config#345
caugner wants to merge 2 commits into
mainfrom
eslint-v10

Conversation

@caugner

@caugner caugner commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description

Bump eslint from v8 to v10 and move the configuration out of package.json's eslintConfig key into a standalone eslint.config.mjs flat config.

  • Bump eslint to ^10, typescript-eslint to ^8.64 (for eslint v10 peer compatibility).
  • Add @eslint/js and globals (required by flat config).
  • Drop .eslintignore in favour of the flat config's ignores.

Motivation

Ensure the linter stays on a supported major. ESLint v10 removes support for the legacy eslintrc format entirely, so migrating to flat config is required to upgrade.

Additional details

Related issues and pull requests

Part of mdn/fred#1291.

@caugner caugner mentioned this pull request Jul 15, 2026
6 tasks
ESLint v10 removes eslintrc support, so move the inline `eslintConfig`
from `package.json` to a standalone `eslint.config.mjs` flat config. Add
`@eslint/js` and `globals` (required by flat config) and bump
`typescript-eslint` for `eslint` v10 peer compatibility. Drop
`.eslintignore` in favour of the flat config's `ignores`.
The flat config now lints `.js`/`.mjs` files (`updates/src/*.js` and
`eslint.config.mjs`), matching `npm run lint`'s `eslint .`. Extend the
pre-commit hook glob so those files are checked on commit too, keeping
the hook aligned with the full lint run.
@caugner
caugner marked this pull request as ready for review July 15, 2026 10:57
@caugner
caugner requested review from a team and mdn-bot as code owners July 15, 2026 10:57
@caugner
caugner requested a review from LeoMcA July 15, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants