Skip to content

chore: build with TypeScript 6 and stable typescript-eslint - #34

Draft
sheepsteak wants to merge 1 commit into
chris/ci-node-24from
chris/typescript-6
Draft

sheepsteak wants to merge 1 commit into
chris/ci-node-24from
chris/typescript-6

Conversation

@sheepsteak

@sheepsteak sheepsteak commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Second of three stacked PRs split out of #32, on top of #33. Consumers get the same behaviour as before.

  • typescript-eslint, @typescript-eslint/parser and @typescript-eslint/utils move from ^8.0.0-alpha.30 to ^8.58.0, the first release that supports TypeScript 6. 8.56 and 8.57 warn on TypeScript 6 projects. The alpha range already resolves to the latest 8.x on fresh installs, so consumers get the same versions as before.
  • The repo builds with TypeScript 6 instead of 5.4. tsconfig.json lists node in types, because TypeScript 6 no longer includes @types packages by default. The built dist/ only differs in helper code TypeScript emits (a newer __importStar, and exported functions assigned at the top of each module), so the plugin behaves the same.
  • Removed globals, @typescript-eslint/rule-tester and @typescript-eslint/eslint-plugin (it comes with typescript-eslint), which nothing imports, plus the resolutions override that pinned @typescript-eslint/utils to the alpha.
  • .gitignore covers the tsconfig.tsbuildinfo file that tsc -b now writes.

TypeScript stays a dev dependency, so consumers can stay on TypeScript 5. TypeScript 7 isn't possible here yet: its compiler builds the repo, but typescript-eslint refuses to load with it, and our lint and tests run through typescript-eslint (typescript-eslint#10940).

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas (n/a, no new logic)
  • I have made corresponding changes to the documentation if applicable (n/a)
  • I have added tests for this change (n/a, existing tests pass unchanged)

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sheepsteak
sheepsteak added this pull request to stack #35 November 25, 2026 12:28
@sheepsteak sheepsteak mentioned this pull request Nov 25, 2026
4 of 5 tasks
@sheepsteak
sheepsteak force-pushed the chris/typescript-6 branch 2 times, most recently from eea26f4 to 74c4c83 Compare November 30, 2026 11:49
typescript-eslint moves from the 8.0 alpha to ^8.58.0, the first release
that supports TypeScript 6. The alpha range already resolves to the
latest 8.x on fresh installs, so consumers get the same version as
before. This also drops the resolutions override that pinned the alpha
in this repo.

TypeScript 6 no longer includes @types packages by default, so tsconfig
lists node. The built dist only changes in the helper code TypeScript
emits.

Also removes globals, @typescript-eslint/rule-tester and
@typescript-eslint/eslint-plugin (typescript-eslint includes it), which
nothing imports, and ignores the tsconfig.tsbuildinfo file the build
writes.
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.

1 participant