Skip to content

secondsky/claude-skills / plugins/typescript-migration/skills/typescript-migration

typescript-migration

Verified

TypeScript version migration guide (5.x to 6 to 7, tsgo native port). Use for TS 6 tsconfig breaking changes, TS 7 Go rewrite rollout, or TS5xxx deprecation codes.

templates/tsconfig.ts7.json

View on GitHub
// TypeScript 7.0 reference tsconfig.json
// - TS 7 is the native Go port. Same tsconfig shape as TS 6 — the defaults carry over.
// - stableTypeOrdering is now always-on and cannot be disabled (was opt-in in TS 6).
// - preserveConstEnums removed — const enums are always emitted now.
// See: https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/
{
  "compilerOptions": {
    // === Defaults inherited from TS 6 ===
    "strict": true,
    "module": "esnext",
    "target": "es2025",
    "moduleResolution": "bundler",

    "rootDir": "./src",
    "types": ["node"],

    "noUncheckedSideEffectImports": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "isolatedModules": true,
    "verbatimModuleSyntax": true,
    "noEmit": true,
    "lib": ["dom", "es2025"],

    // === TS 7 notes ===
    // "stableTypeOrdering": true,    // always-on in TS 7 — do NOT set (it's not a valid option anymore)
    // "preserveConstEnums": true,    // REMOVED in TS 7 — const enums always emitted now
  },
  "include": ["./src/**/*.ts", "./src/**/*.tsx"],
  "exclude": ["node_modules", "dist"]
}
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall