-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig-base.json
More file actions
44 lines (35 loc) · 1.21 KB
/
Copy pathtsconfig-base.json
File metadata and controls
44 lines (35 loc) · 1.21 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
// TypeScript config defaults for each sub-project (src, test, etc).
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"compilerOptions": {
// Enable incremental builds.
"composite": true,
// Maximize type checking.
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"noUncheckedSideEffectImports": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
"types": [], // Projects add types needed.
// Improve compatibility with compilers that aren't type system aware.
"isolatedModules": true,
// Use ESM.
"esModuleInterop": true,
// Allow JSON type-checking and imports.
"module": "ESNext",
"moduleResolution": "Bundler",
// Assume library types are checked and compatible.
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"sourceMap": true,
"target": "ES2023"
},
// https://github.com/microsoft/TypeScript/wiki/Performance#misconfigured-include-and-exclude
"exclude": ["dist", "node_modules", ".*/"]
}