-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.json
More file actions
27 lines (24 loc) · 1.08 KB
/
tsconfig.json
File metadata and controls
27 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"compilerOptions": {
// --- Project Settings ---
"target": "ESNext", // Compile to a modern ECMAScript version
"module": "ESNext", // Emit native ESM for packaged runtime
"moduleResolution": "Bundler", // Keep source imports extensionless; post-build rewrites dist for Node
"outDir": "./dist", // Where to output compiled JavaScript
"rootDir": ".", // The root directory of your source files
"paths": {
"@/*": ["./src/*"],
"#/*": ["./tests/*"]
},
// --- Type Checking ---
"strict": true, // Enable all strict type-checking options
"noUncheckedIndexedAccess": true, // Adds 'undefined' to any un-checked index access
// --- Interoperability ---
"esModuleInterop": true, // Allows default imports from CommonJS modules
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true, // Disallow inconsistently-cased references to the same file.
// --- Completeness ---
"skipLibCheck": true // Skip type checking of all declaration files (*.d.ts).
},
"exclude": ["node_modules", "dist"] // Which files to exclude
}