CI Perf Lint

prefer-typescript-7-native-compiler

TypeScript version evidence uses the root lockfile dependency where available, and ignores unrelated aliases and unresolved package protocols.

Why it matters

TypeScript 7 is a native Go port of the compiler (Project Corsa). It keeps the type-checking logic of TypeScript 6.0 while replacing the Node.js-based tsc with a native binary that uses shared-memory parallelism.

Microsoft reports on production-scale codebases:

The speed comes from native execution and parallelism, not from changed checking rules, so moving to TypeScript 7 is mostly a compiler swap.

What it flags

Flags a repository whose package.json depends on TypeScript 5.x or 6.x. The rule reads the TypeScript version from repository signals derived from package.json.

Repositories on TypeScript 4.x or earlier, already on TypeScript 7.x or later, or with no detectable typescript dependency, are not flagged.

This rule is independent from prefer-typescript-5-performance-milestone, which recommends short-term 5.x milestones. A repository on TypeScript 5.x can receive both findings: one for the next 5.x step and one for the larger 7.x jump.

Suggested action

Verification

What the scanner does

Sources