ts-config
БесплатноБез исполняемых скриптовНе проверенUse when creating or migrating a tsconfig.json, choosing module/moduleResolution, or fixing TS 6.0 deprecations that are hard errors in TS 7.0. Not for…
от Fusengine★ 36 звёзд на GitHubОб этом скилле
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.
TypeScript Config (TS 7.0)
Agent Workflow (MANDATORY)
Before writing any tsconfig, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Detect runtime (Bun/Node/bundler), existing tsconfig,
package.jsontype - fuse-ai-pilot:research-expert - Confirm current flags on typescriptlang.org release notes + runtime docs
- mcp__context7__query-docs -
/microsoft/typescriptfor any flag whose behavior is unclear
After writing, run fuse-ai-pilot:sniper for validation.
Overview
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 |
Critical Rules
- Never
moduleResolution: node/node10- deprecated in 6.0, hard error in 7.0. Usebundlerornodenext. - Always
verbatimModuleSyntax: true- both tracks. Forces explicitimport type, matches Node's type stripping. strict+noUncheckedIndexedAccess- strict is the default since 6.0 (kept in 7.0); addnoUncheckedIndexedAccessexplicitly.- Set
typesexplicitly - since 6.0 (kept in 7.0)typesdefaults to[]. Add["node"],["bun"], etc. or you lose globals. - Set
rootDirwhen sources are nested - since 6.0 (kept in 7.0)rootDirdefaults to the tsconfig dir, no longer inferred.
Decision: which track?
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)
Reference Guide
Concepts
| 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 |
Templates
| Template | When to Use |
|---|---|
| tsconfig.bundler.md | Complete Bun/bundler tsconfig |
| tsconfig.node.md | Complete pure-Node tsconfig |
Quick Reference
Bundler / Bun
{
"compilerOptions": {
"module": "Preserve",
"moduleResolution": "bundler",
"verbatimModuleSyntax": true,
"allowImportingTsExtensions": true,
"noEmit": true,
"strict": true,
"noUncheckedIndexedAccess": true
}
}
Pure Node.js (native type stripping)
{
"compilerOptions": {
"module": "nodenext",
"rewriteRelativeImportExtensions": true,
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true,
"noEmit": true, // only if you never emit .js
"strict": true
}
}
Best Practices
DO
- Add
"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) - Keep tools that need the compiler API (e.g. typescript-eslint) on TS 6 via the
@typescript/typescript6alias whiletscruns TS 7.0 — see deprecations-6.md - Use subpath imports
"#/*": "./src/*"inpackage.jsonimports(supported undernodenextandbundler) - Fold any
baseUrlprefix into eachpathsentry (baseUrlis deprecated)
DON'T
- Mix
module: PreservewithmoduleResolution: nodenext(or vice-versa) - Set
esModuleInterop,allowSyntheticDefaultImports, oralwaysStricttofalse(no longer allowed) - Use
Установить ts-config в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ts-config?
Use when creating or migrating a tsconfig.json, choosing module/moduleResolution, or fixing TS 6.0 deprecations that are hard errors in TS 7.0. Not for language syntax (ts-language-patterns).
Как установить скилл ts-config?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ts-config запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic