-
Notifications
You must be signed in to change notification settings - Fork 9
/
tsconfig.json
52 lines (47 loc) · 1.44 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
51
52
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
// JavaScript without inline types, a necessary evil for some tools
"allowJs": true,
"checkJs": true,
// Module system and compilation target/environment
"isolatedModules": true,
"lib": ["ES2022"],
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "Bundler",
"resolvePackageJsonImports": true,
"target": "ESNext", // Top-level await requires this
// Modules and TypeScript esoterica
"allowImportingTsExtensions": true,
"esModuleInterop": true,
"verbatimModuleSyntax": true,
// Build, if/when it goes through `tsc`
"declaration": true,
"emitDeclarationOnly": true,
// Type safety (strictness -> 11)
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
// No installed types used by default, to be overridden in individual
// configs as necessary
"types": []
},
"include": [],
"files": ["./tsconfig.json"],
"exclude": [
"node_modules",
"examples/*/node_modules",
"packages/*/node_modules",
"packages/*/e2e/node_modules",
"packages/*/test/node_modules",
"scripts/*/node_modules"
]
}