A small strict config for many projects.

Section: tsconfig Basics

Minimal tsconfig

json
json
{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "strict": true,
    "noEmit": true,
    "skipLibCheck": true
  }
}
Explanation

A `tsconfig.json` marks the project root and controls compilation behavior.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing tsconfig Basics
Enable strict mode
Turn on TypeScript’s strict family checks.
OpenIn sheetjsonsame section
Node-focused tsconfig
Example config for modern Node.js projects.
OpenIn sheetjsonsame section
Configure path aliases
Use `baseUrl` and `paths` for ergonomic imports.
OpenIn sheetjsonsame section
Control included files
Use `include` and `exclude` patterns.
OpenIn sheetjsonsame section
Show resolved config
Print the final config after `extends` resolution.
OpenIn sheetbash2 tag match
List compilation files
Print files included in the program.
OpenIn sheetbash1 tag match