chore: upgrade ESLint to v10 with flat config#201
Merged
dhensby merged 1 commit intotediousjs:masterfrom Apr 14, 2026
Merged
Conversation
Migrate from ESLint v8 with legacy .eslintrc.json to ESLint v10 with flat config (eslint.config.mjs). - Replace eslint v8 with v10, @typescript-eslint/parser and @typescript-eslint/eslint-plugin with the unified typescript-eslint package - Convert .eslintrc.json to eslint.config.mjs using tseslint.config() - Move .eslintignore entries into the flat config ignores property - Remove --config flag from lint script (flat config is auto-detected) - Fix lint errors caught by new rules (trailing commas in generate-docs.ts, useless assignment) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
3e7adcb to
325088c
Compare
|
🎉 This PR is included in version 3.1.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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.
Summary
Upgrade from ESLint v8 (EOL) to ESLint v10 and migrate from the legacy
.eslintrc.jsonconfig format to the flat config (eslint.config.mjs).Changes
@typescript-eslint/parser+@typescript-eslint/eslint-plugin→typescript-eslint: Replaced the two separate packages with the unifiedtypescript-eslintpackage.eslintrc.json→eslint.config.mjs: Migrated to flat config usingtseslint.config()helper.eslintignore→ignoresproperty: Moved ignore patterns into the flat configpackage.jsonlint script: Removed--configflag (flat config is auto-detected)misc/generate-docs.ts: Fixed trailing comma errors and ano-useless-assignmenterror caught by the new ESLint versionAll existing lint rules are preserved:
comma-dangle,no-shadow,semi, and@typescript-eslint/no-explicit-anyoff in test files.