-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtsconfig.json
41 lines (32 loc) · 1.25 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
{
"compilerOptions": {
"sourceMap": true,
// es2019 roughly corresponds to current feature checks in prologue.tsx.
"target": "es2019",
"module": "preserve",
"verbatimModuleSyntax": true,
// These are marked "Recommended" in the tsconfig reference.
// Except those implied by "strict".
// Except "esModuleInterop", as it's implied by "module": "preserve".
// Except "skipLibCheck", for now.
"exactOptionalPropertyTypes": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
// Enable more error checking.
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
// Not using "noPropertyAccessFromIndexSignature" because it's cumbersome
// for properties of `query` and `Votr`.
// "noUnusedLocals", "noUnusedParameters": maybe later?
"jsx": "react-jsx",
// outDir is ignored by webpack ts-loader and by `tsc --noEmit`.
// Nothing reads this directory or expects it to exist. It's just for
// convenience so you can run `pnpm tsc` and look at the output.
"outDir": "./tsc_output.tmp"
},
"include": ["votrfront/js"]
}