-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
46 lines (42 loc) · 1.48 KB
/
tsconfig.base.json
File metadata and controls
46 lines (42 loc) · 1.48 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
45
46
{
"compilerOptions": {
/* uncontroversial defaults */
"esModuleInterop": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"jsx": "react-jsxdev",
"forceConsistentCasingInFileNames": true,
/* modern defaults */
"isolatedModules": true,
// "verbatimModuleSyntax": true, // TODO: enable. for some reason it fails for this repo
"types": [], // no automatic type elision
"composite": true,
"exactOptionalPropertyTypes": false, // too disruptive, and usually unhelpful
"erasableSyntaxOnly": false, // one day when enums are part of native JS, this could be enabled
"noUncheckedSideEffectImports": true,
"moduleDetection": "force", // no need for dud `export {}` anymore
/* strictness */
"strict": true,
"checkJs": true,
"noUncheckedIndexedAccess": true,
"noPropertyAccessFromIndexSignature": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
/* ESM */
"lib": ["esnext"], // explicitly add DOM if you need it
"target": "esnext",
"module": "nodenext",
"moduleResolution": "nodenext",
/* emit */
"noEmit": true, // off by default; these settings apply if emit is enabled
"rootDir": "${configDir}/src",
"outDir": "${configDir}/dist",
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"stripInternal": true
},
"exclude": ["**/node_modules", "**/coverage"]
}