-
Notifications
You must be signed in to change notification settings - Fork 5
/
tsconfig.src.json
38 lines (38 loc) · 1.04 KB
/
tsconfig.src.json
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
{
"compilerOptions": {
// for node18 (minimum support)
// ref: https://github.com/tsconfig/bases/blob/main/bases/node18.json
"lib": ["es2022"],
"module": "node16",
"target": "es2022",
// strictest
"strict": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"isolatedModules": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
// custom
"moduleResolution": "node16",
"outDir": "dist",
"types": ["node"],
"declaration": true,
"noEmit": false,
"emitDeclarationOnly": true,
"noErrorTruncation": true,
"allowJs": false,
"checkJs": false
},
"files": ["example.ts"],
"include": ["src"],
"exclude": ["**/*.test.ts"]
}