Generator
tsconfig.json Builder with Best-Practice Defaults
Build a TypeScript tsconfig.json with modern defaults and plain-English option explanations for apps and libraries.
What is tsconfig.json?
The tsconfig.json file configures the TypeScript compiler for your
project. It controls which files are compiled, how strict the type checking
is, what JavaScript version to target, and where the output goes.
Key options explained
- strict — Enables all strict type checking options. Highly recommended for new projects.
- target — Which JavaScript version to compile to. ES2022 is a safe modern choice.
- module — How modules are handled. Use ESNext for modern ESM projects.
- declaration — Generates
.d.tstype definition files. Needed if you're publishing a library.