-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
44 lines (39 loc) · 1.42 KB
/
Copy pathtsconfig.json
File metadata and controls
44 lines (39 loc) · 1.42 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
{
"compilerOptions": {
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"resolveJsonModule": true,
"noEmit": true,
// Every import is written from the repository root:
// `@/tools/fight-dump-parser.ts`, never `../../tools/fight-dump-parser.ts`.
// A path that reads the same wherever it appears says
// where the thing comes from, and moving a file no longer rewrites the
// imports of its neighbours.
"baseUrl": ".",
"paths": {
"@/*": ["./*"]
},
"strict": true,
"skipLibCheck": true,
// There is no linter here on purpose — the compiler is its replacement.
// These two turn dead code into a build failure instead of something to
// read past, which is the only thing standing between this tree and the
// uncalled functions the previous one accumulated.
"noUnusedLocals": true,
"noUnusedParameters": true,
// The decoder lives on indexing regex groups and arrays. This forces every
// access to prove itself rather than assume a hit.
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"noImplicitReturns": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false
}
}