No slash command · from fuse-typescript
Creates or migrates tsconfig.json for TypeScript 7.0, covering the two supported config tracks (bundler vs Node) and fixing TS 6.0 deprecations that become hard errors in 7.0.
Ships in fuse-typescript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
It also covers the TS 6.0 deprecation cleanup that TS 7.0 (native Go compiler) enforces as hard errors: dropping moduleResolution node/node10, setting verbatimModuleSyntax, strict + noUncheckedIndexedAccess, explicit types, and explicit rootDir now that it is no longer inferred.
Out of scope: TypeScript language syntax and idioms belong to ts-language-patterns; framework configs that ship their own tsconfig base (Next.js/Astro/Vite plugin skills) and non-TS build tooling are not covered.
Before writing any tsconfig, spawn 3 agents in parallel, one Agent call each with a name:
package.json type/microsoft/typescript for any flag whose behavior is unclearAfter writing, run fuse-ai-pilot:sniper for validation.
There are exactly two supported config trajectories in 2026. Pick by runtime, never mix.
| Track | Runtime | module | moduleResolution |
|---|---|---|---|
| Bundler | Bun, Vite, esbuild, webpack | Preserve | bundler |
| Node | Pure Node.js (native type stripping) | nodenext | nodenext |
moduleResolution: node / node10 - deprecated in 6.0, hard error in 7.0. Use bundler or nodenext.verbatimModuleSyntax: true - both tracks. Forces explicit import type, matches Node's type stripping.strict + noUncheckedIndexedAccess - strict is the default since 6.0 (kept in 7.0); add noUncheckedIndexedAccess explicitly.types explicitly - since 6.0 (kept in 7.0) types defaults to []. Add ["node"], ["bun"], etc. or you lose globals.rootDir when sources are nested - since 6.0 (kept in 7.0) rootDir defaults to the tsconfig dir, no longer inferred.Runs on Bun, or bundled by Vite/esbuild/webpack/Parcel?
→ Bundler track → references/bundler-track.md
Runs directly on `node file.ts` (type stripping), or emits .js for Node?
→ Node track → references/node-track.md
Migrating an existing 5.x config / seeing deprecation errors?
→ references/deprecations-6.md (do this first, then pick a track)
| Topic | Reference | When to Consult |
|---|---|---|
| Bundler track | bundler-track.md | Load when configuring a Bun or bundler (Vite/esbuild/webpack) project |
| Node track | node-track.md | Load when configuring a pure Node.js project with native type stripping |
| 6.0 deprecations / 7.0 errors | deprecations-6.md | Load when migrating from TS 5.x/6.0, fixing deprecation errors, or adopting the TS 7.0 tsc |
| Template | When to Use |
|---|---|
| tsconfig.bundler.md | Complete Bun/bundler tsconfig |
| tsconfig.node.md | Complete pure-Node tsconfig |
{
"compilerOptions": {
"module": "Preserve",
"moduleResolution": "bundler",
"verbatimModuleSyntax": true,
"allowImportingTsExtensions": true,
"noEmit": true,
"strict": true,
"noUncheckedIndexedAccess": true
}
}
{
"compilerOptions": {
"module": "nodenext",
"rewriteRelativeImportExtensions": true,
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true,
"noEmit": true, // only if you never emit .js
"strict": true
}
}
"ignoreDeprecations": "6.0" temporarily on TS 6.0 while migrating, then remove it — TS 7.0 does not honour it (deprecated options are hard errors)@typescript/typescript6 alias while tsc runs TS 7.0 — see deprecations-6.md"#/*": "./src/*" in package.json imports (supported under nodenext and bundler)baseUrl prefix into each paths entry (baseUrl is deprecated)module: Preserve with moduleResolution: nodenext (or vice-versa)esModuleInterop, allowSyntheticDefaultImports, or alwaysStrict to false (no longer allowed)enum, namespace with runtime code, or parameter properties in files run by Node's type strippingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tsconfig, typescript-config, ts-7, module-resolution, deprecations
npx claudepluginhub fusengine/claude-plugins --plugin fuse-typescript7 skills in this plugin
/ts-language-patternsUse when writing or reviewing modern TS syntax — const type parameters, using/await using, standard decorators, satisfies, or LLM anti-patterns (legacy enum/namespace). Not for tsconfig (ts-config)./ts-lint-formatUse when choosing or configuring a TS linter/formatter — Biome 2.x vs ESLint 10 flat config + typescript-eslint typed linting. Not for type checking itself (ts-config)./ts-packagingUse when publishing a TypeScript library — exports map, JSR vs npm, dual ESM/CJS, type validation, provenance. Not for application deployment./ts-runtime-bunUse when running TypeScript on Bun — bunfig.toml, bun test, Bun.build/--compile, or Bun workspaces. Not for Node.js runtime setup (ts-runtime-node)./ts-runtime-nodeUse when running TypeScript directly on Node.js without a build step — native type stripping, its limits, or when to reach for tsx. Not for Bun (ts-runtime-bun)./ts-testingUse when writing or configuring TypeScript tests and choosing between bun test and Vitest. Not for framework-specific testing (React → react-testing).Other plugins' skills for the same job