-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
38 lines (37 loc) · 1.04 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
{
"compilerOptions": {
"target": "esnext",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"skipLibCheck": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
// Strictness - start
// These are designed to be as strict as possible and do mostly make sense
"strict": true, // Sets many other options
"noUncheckedIndexedAccess": true, // Stops you accidentally getting undefined when doing something like object[nonExistentKey]
"allowUnreachableCode": false,
"allowUnusedLabels": false,
// 4.4 and above
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUnusedLocals": true,
"noUnusedParameters": true
// Strictness - end
},
"include": [
"src"
]
}