-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtsconfig.json
57 lines (47 loc) · 1.73 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
53
54
55
56
57
{
"compilerOptions": {
"sourceMap": true,
// es2019 roughly corresponds to current feature checks in prologue.tsx.
"target": "es2019",
// es2020 adds import() and import.meta. es2022 adds top-level await.
// Wasn't needed yet.
"module": "es2015",
"moduleResolution": "node",
// These are marked "Recommended" in the tsconfig reference.
// Except those implied by "strict".
// Except "skipLibCheck", for now.
"exactOptionalPropertyTypes": true,
"strict": true,
"esModuleInterop": 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",
// Needed to fix `yarn tsc --noEmit` complaining about conflicting
// definitions of AbortSignal in @types/node/globals.d.ts versus
// typescript/lib/lib.dom.d.ts. Something indirectly depends on @types/node
// and TypeScript tries to use all installed @types/* by default.
"types": [
"bootstrap",
"file-saver",
"jquery",
"lodash-es",
"react",
"react-big-calendar",
"react-dom"
],
// outDir is ignored by webpack ts-loader and by `yarn tsc --noEmit`.
// Nothing reads this directory or expects it to exist. It's just for
// convenience so you can run `yarn tsc` and look at the output.
"outDir": "./tsc_build"
},
"include": ["votrfront/js"]
}