tsconfig Generator
Build a tsconfig.json for your target.
tsconfig options
tsconfig.json
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"outDir": "dist",
"declaration": true
},
"include": [
"src"
],
"exclude": [
"node_modules",
"dist"
]
}
About this tool
Pick a target environment and strictness level to generate a sensible tsconfig.json starting point.
How to use
- Choose the target, module system, and strictness.
- Toggle common compiler options.
- Copy the generated tsconfig.json.
Examples
Option
{ "compilerOptions": { "strict": true } }Frequently asked questions
Yes, strict is recommended and enabled by default; you can turn it off.