-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
50 lines (39 loc) · 1.29 KB
/
tsconfig.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
39
40
41
42
43
44
45
46
47
48
49
50
{
"compilerOptions": {
// Enable incremental builds.
"composite": true,
// Maximize type checking.
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
// Projects add types needed.
"types": [],
// Improve compatibility with compilers that aren't type system aware.
"isolatedModules": true,
// Allow JSON type-checking and imports.
"module": "NodeNext",
"moduleResolution": "NodeNext",
// Assume library types are checked and compatible.
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"outDir": "dist",
// Unpack at root of dist.
"rootDir": "src",
"sourceMap": true,
"target": "ES2022",
"tsBuildInfoFile": "dist/tsconfig.tsbuildinfo",
// Don't transform type-only imports.
"verbatimModuleSyntax": true
},
// https://github.com/Microsoft/TypeScript/issues/25636
"include": ["**/*", "**/*.json"],
// https://github.com/microsoft/TypeScript/wiki/Performance#misconfigured-include-and-exclude
"exclude": ["dist", "node_modules", ".*/"]
}