Config Files · 1 file

Sample tsconfig.json File

tsconfig.json configures the TypeScript compiler. Our sample is realistic and valid for its tool, with fake hosts and secrets.

tsconfig.json · 455 B

tsconfig.json

A strict TypeScript compiler config for a modern ESM project, with path aliases and comments (JSONC). All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

tsconfig.json — first linesJSON
{
  // Sample tsconfig.json — samplefiles.com (TypeScript allows comments here)
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "exactOptionalPropertyTypes": true,
    "skipLibCheck": true,
    "outDir": "dist",
    "baseUrl": ".",
    "paths": { "@/*": ["src/*"] }
  },
  "include": ["src"],
  "exclude": ["node_modules", "dist"]
}

File details

Size
455 B (455 bytes)
MIME type
application/json
SHA-256
863b56ba74ea46ab0629c13224384e7404a779d29bc97e7f5be1ec2f7d0fc9de
MD5
b65da48fb9704bd2fd1c15cd211330ad

Download from the command line

curl -L -o tsconfig.json https://files.samplefiles.com/config/tsconfig/tsconfig.json

Or check the download in your browser with the checksum calculator.