Dev Tools

tsconfig.json Generator

Generate TypeScript tsconfig.json with common presets for Node, React, and library projects.

Project Preset
Compiler Options
Flags
Include / Exclude
Generated tsconfig.json
{
  "compilerOptions": {
    "target": "es2022",
    "module": "nodenext",
    "moduleResolution": "nodenext",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "resolveJsonModule": true,
    "isolatedModules": true,
    "sourceMap": true,
    "outDir": "./dist"
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "node_modules",
    "dist"
  ]
}
Was this page helpful?

Related tools

About TSConfig Generator

Build a tsconfig.json by choosing target, module, strictness, and common options, with explanations for each. A faster, less error-prone start than copying configs from memory.

How to use

  1. Select your target environment and module system.
  2. Toggle strict options and paths as needed.
  3. Copy the generated tsconfig.json into your project.

Frequently asked questions

Should I enable strict mode?
Yes for new projects — strict catches many bugs at compile time; you can relax individual flags if needed.
What target should I choose?
Pick a target matching your runtime; modern Node and browsers support ES2020+ comfortably.