All skills

TypeScript 6+ guidance for project development, tsconfig configuration, diagnostics, module resolution, deprecations, and modern standard-library typings. Use when building or maintaining TypeScript 6+ projects, debugging compiler behavior, or working through TS 6-specific defaults and tooling such as `#/` subpath imports, `ignoreDeprecations`, `RegExp.escape`, `Temporal`, and `--stableTypeOrdering`. Triggers on typescript 6, ts 6, stableTypeOrdering, ignoreDeprecations, types array, noUncheckedSideEffectImports, baseUrl deprecated, moduleResolution node deprecated, and subpath imports.

Use this Skill: https://skilld.dev/gh/nodnarbnitram/claude-code-extensions/typescript-v6

This session only. Nothing lands on disk.

referencesdefaults-migration-reference.md

≈690 tokens on demand. Your agent reads this file only when SKILL.md points to it.

TypeScript 6 Defaults and Configuration Reference

TypeScript 6 changed enough compiler behavior that several assumptions that used to stay implicit often need to become explicit in real projects.

Highest-Impact Upgrade Checks

1. Make types explicit

If a project depends on Node.js globals, a test runner, Workers, or Bun globals, add the exact type packages it needs instead of relying on ambient discovery.

{
  "compilerOptions": {
    "types": ["node", "jest"]
  }
}

This improves both performance and predictability compared with older "load everything from @types" assumptions.

1b. Expect side-effect import checking to be stricter

TS 6 applies stricter checking to side-effect-only imports, so previously ignored path mistakes can start surfacing during normal project work.

2. Make rootDir explicit

If the source tree lives under src/, TypeScript 6+ projects often need this:

{
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist"
  },
  "include": ["src/**/*"]
}

Without it, some projects can see emitted files shift from dist/index.js to dist/src/index.js.

3. Keep strict deliberate

If the project already uses strict mode, keep it explicit. If the repo truly needs looser semantics during a staged migration, say so explicitly instead of assuming older defaults.

{
  "compilerOptions": {
    "strict": false
  }
}

4. Keep target / lib intentional

Use modern library types only when the project can support them.

{
  "compilerOptions": {
    "target": "es2025",
    "lib": ["es2025", "dom"]
  }
}

Migration Baselines

Bundled web app

{
  "compilerOptions": {
    "target": "es2025",
    "module": "esnext",
    "moduleResolution": "bundler",
    "lib": ["es2025", "dom"],
    "rootDir": "./src",
    "outDir": "./dist",
    "strict": true
  },
  "include": ["src/**/*"]
}

Add a types array here only if the app or its tooling actually needs Node/test/platform globals.

Node package

{
  "compilerOptions": {
    "target": "es2022",
    "module": "nodenext",
    "moduleResolution": "nodenext",
    "lib": ["es2022"],
    "rootDir": "./src",
    "outDir": "./dist",
    "types": ["node"],
    "strict": true
  },
  "include": ["src/**/*"]
}

5. Prefer compiler-state inspection before guessing

npx tsc --showConfig
npx tsc --explainFiles

When project behavior looks strange, inspect the effective config and file graph before rewriting source code.

Temporary Escape Hatch

{
  "compilerOptions": {
    "ignoreDeprecations": "6.0"
  }
}

Use this only to buy time while you remove deprecated settings. Do not treat it as a permanent upgrade strategy.

Source: SKILL.md on GitHub

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill provides safe and comprehensive guidance for configuring and migrating projects to TypeScript 6. It utilizes standard compiler tools and references official documentation without any detected security risks or malicious patterns.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at aabed46. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
version
1.0.0
metadata
{
  "author": "Brandon Martin"
}

README badge

README badge for nodnarbnitram/claude-code-extensions/typescript-v6