chore: migrate to ESLint 10 flat config#59
Merged
Conversation
Replaces .eslintrc.js with eslint.config.mjs, preserving every rule and severity from the legacy config. Toolchain bumps required by the migration: - eslint 8.57 -> 10.x - @typescript-eslint/eslint-plugin + parser 6.x -> 8.x - eslint-plugin-jest 27 -> 29 - eslint-config-prettier 9 -> 10 - eslint-plugin-import (ESLint 9 max) replaced by eslint-plugin-import-x, registered under the same "import" rule namespace Closes #35 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 21, 2026
alphacrack
added a commit
that referenced
this pull request
Jul 21, 2026
Supersedes the Dependabot PR, which could not rebase after the lockfile regeneration in #59. TypeScript 6.0 required two tsconfig.spec.json fixes: - module 'commonjs' + moduleResolution 'node': the legacy node10 resolution was removed in TS 6; switched to module 'node20' (matching the jsii 6-generated tsconfig). - baseUrl: hard-deprecated in TS 6 (TS5101); removed, with the paths alias made explicitly relative. - types: TS 6 no longer auto-includes @types packages under this setup; declared ['jest', 'node'] explicitly. Previously ts-jest swallowed the TS5101 config error and silently compiled without types. Verified: tsc -p tsconfig.spec.json clean, 34/34 tests, jsii build clean, lint clean. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 21, 2026
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.
Migrates the lint setup from legacy
.eslintrc.jsto flat config (eslint.config.mjs), preserving every rule and severity 1:1.Toolchain changes
importrule namespace, so all rule names and anyeslint-disablecomments keep working unchanged.typescript-eslintmeta package (flat-config API),@eslint/js,globals.The lockfile was regenerated from scratch (the incremental upgrade hit ERESOLVE against the old tree), hence the large lock diff.
Verification
npm run lint: 0 errors (13 pre-existing warnings, same severities as before)npm run build(jsii): cleannpm test: 34/34npm run format:check: cleanCloses #35. Dependabot should auto-resolve #9, #14, and #16 once this merges. This also unblocks re-testing #13 (TS 6), since typescript-eslint 8.60 supports TypeScript <6.1.
🤖 Generated with Claude Code