-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtsconfig.json
More file actions
44 lines (39 loc) · 1.18 KB
/
tsconfig.json
File metadata and controls
44 lines (39 loc) · 1.18 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"compilerOptions": {
/* Projects */
"incremental": true,
"composite": true,
// Platform & modules
"target": "ES2022", // Node 20+ supports this natively
"lib": ["ES2024"], // built-ins/Promise APIs, etc.
"module": "NodeNext", // ESM for Node
"moduleResolution": "NodeNext",
"moduleDetection": "force",
"types": ["node"],
// Emission
"outDir": "./dist",
"rootDir": ".",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"inlineSources": true,
"stripInternal": true, // hide @internal from .d.ts
"newLine": "lf",
// ESM/CJS interop
"verbatimModuleSyntax": true, // preserves import/export as written
"allowSyntheticDefaultImports": true,
// leave "esModuleInterop" false when using verbatimModuleSyntax
// Strictness & safety
"strict": true,
"skipLibCheck": true, // speed; safe for libs
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
// QoL
"resolveJsonModule": true,
"preserveSymlinks": false
},
"include": ["src", "scripts"],
"exclude": ["dist", "node_modules"]
}