Migrate to TypeScript 7.0.2#3565
Conversation
TypeScript 7 ships no programmatic API yet, so typescript-eslint keeps using @typescript/typescript6 while tsc runs the native 7.0.2 compiler. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description and Related Issue(s)
Upgrade the project to TypeScript 7.0.2 (native Go compiler) for faster type-checking in CI and local development.
Proposed Changes
@typescript/native(typescript@7.0.2) as the compiler used bytsc/pnpm lint:tsc.typescriptto@typescript/typescript6@6.0.2sotypescript-eslintand other tools that rely on the TS 6 programmatic API keep working until TypeScript 7.1 ships a new API.deploy/tools/*,@blockscout/ui-toolkit) from TypeScript 6.0.3 to 7.0.2.node_modules_linuxfrom the ui-toolkit tsconfig (local Docker artifact that TS 7 was type-checking due to the broadrootDir).Breaking or Incompatible Changes
None for application code. Type-checking behavior should match TypeScript 6.0 with
stableTypeOrderingenabled (TS 7 default).Additional Information
Side-by-side setup:
node_modules/.bin/tsc→ TypeScript 7.0.2;node_modules/.bin/tsc6→ TypeScript 6.0.2 (ESLint).Release-age policy: TypeScript 7.0.2 packages were published on Jul 8, 2026 and clear the 1-week
minimumReleaseAgeon ~Jul 15, 2026. This PR intentionally does not addminimumReleaseAgeExcludeentries — CIpnpm installmay fail until then. Plan: mark ready for review on Wednesday when packages are mature enough.Editor: For the faster language server, enable the TypeScript 7 extension in VS Code/Cursor ("Enable TypeScript 7 Language Server").
Checklist for PR author
Made with Cursor