-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
22 lines (22 loc) · 1.04 KB
/
tsconfig.json
File metadata and controls
22 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"compilerOptions": {
"target": "ES2021", // Modern JS output (can be ESNext too)
"module": "CommonJS", // For Node.js (use 'ESNext' if ESM)
"rootDir": "./src", // Source folder
"outDir": "./dist", // Build output
"strict": true, // All strict type checks
"esModuleInterop": true, // Default interop for imports
"moduleResolution": "node", // Node module resolution
"resolveJsonModule": true, // Allow importing JSON files
"experimentalDecorators": true, // REQUIRED: decorators work
"emitDecoratorMetadata": true, // REQUIRED: decorator metadata
"forceConsistentCasingInFileNames": true, // Catch casing mismatches
"skipLibCheck": true, // Speeds up compilation
"sourceMap": true, // Helpful for debugging
"noImplicitReturns": true, // Enforce returns
"noUnusedLocals": true, // Catch unused vars
"noFallthroughCasesInSwitch": true // Safer switches
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}