chore: migrate ESLint to flat config - #103
Open
liamhughes wants to merge 1 commit into
Open
Conversation
ESLint 9 made eslint.config.js the default and v10 removes eslintrc support entirely, including the ESLINT_USE_FLAT_CONFIG=false escape hatch, so .eslintrc.js has to go before eslint can be bumped past v8. Translates the existing config as-is: the three extends become a composed config array, and .eslintignore plus ignorePatterns collapse into ignores. The same 12 files are linted with the same rules and no new findings. The eslintrc env node/es6 setting is dropped rather than translated to languageOptions.globals. Only no-undef and no-redeclare consume the globals list, and typescript-eslint's eslint-recommended overrides turn both off for .ts files, so configuring globals has no effect on lint results here. It becomes necessary only if linting is widened to the root .js files. Swaps @typescript-eslint/eslint-plugin for the typescript-eslint meta package, which bundles the parser and exposes the flat configs, and adds @eslint/js for eslint:recommended.
liamhughes
commented
Jul 31, 2026
| @@ -1,4 +0,0 @@ | |||
| node_modules/* | |||
Contributor
Author
There was a problem hiding this comment.
This is now ignored by default.
liamhughes
commented
Jul 31, 2026
| @@ -1,4 +0,0 @@ | |||
| node_modules/* | |||
| **/package.json | |||
Contributor
Author
There was a problem hiding this comment.
We are only linting *.ts files.
liamhughes
marked this pull request as ready for review
July 31, 2026 01:31
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.
Background
Open Renovate PR #102 can not be merged because ESLint removes support for
.eslintrc.jsfor configuration.Changes
Translates the existing config as-is: the three extends become a composed config array, and .eslintignore plus ignorePatterns collapse into ignores.