-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
35 lines (30 loc) · 982 Bytes
/
Copy pathtsconfig.base.json
File metadata and controls
35 lines (30 loc) · 982 Bytes
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
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2022"],
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"esModuleInterop": true,
// Stricter than `strict: true`.
"noUncheckedIndexedAccess": true, // arr[i] returns T | undefined
"exactOptionalPropertyTypes": true, // `?` doesn't auto-add undefined
"noImplicitOverride": true,
"noImplicitThis": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
// Forces explicit `import type` so bundlers can erase types.
"verbatimModuleSyntax": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
// For DI (Inversify): emit reflect-metadata at runtime.
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}