tsconfig.json config

TypeScript compiler configuration file example.

Open in JSON Formatter

About this format

The tsconfig.json file configures how TypeScript compiles to JavaScript. It enables strict typing and module resolution.

Example Data

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "strict": true,
    "skipLibCheck": true
  },
  "include": ["src/**/*"]
}

When to use tsconfig.json config

  • Configuring TypeScript strictness
  • Setting output targets
  • Defining source folders