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.ts6.json

View on GitHub
// TypeScript 6.0 reference tsconfig.json
// - Embraces new defaults (no need to set strict/module/target/moduleResolution — they're already the new defaults).
// - Explicitly sets the two disruptive options (rootDir, types) to typical values.
// - Contains zero deprecated options — passes TS 7 cleanly too.
// See: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/
{
  "compilerOptions": {
    // === New defaults in TS 6 (set explicitly for clarity) ===
    "strict": true,
    "module": "esnext",
    "target": "es2025",
    "moduleResolution": "bundler",

    // === The two "surprising" defaults — set these explicitly ===
    "rootDir": "./src",
    "types": ["node"],

    // === Recommended modern settings ===
    "noUncheckedSideEffectImports": true,
    "esModuleInterop": true,           // default true in TS 6
    "skipLibCheck": true,              // optional but common
    "isolatedModules": true,           // required by most bundlers
    "verbatimModuleSyntax": true,      // for safe import/export of types
    "noEmit": true,                    // when using an external bundler
    "lib": ["dom", "es2025"],          // dom now absorbs dom.iterable

    // === Output (when not using a bundler) ===
    // "outDir": "./dist",
    // "declaration": true,
    // "sourceMap": true,
  },
  "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