-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig-base.json
55 lines (43 loc) · 1.54 KB
/
tsconfig-base.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
// TypeScript configuration defaults for each sub-project (src, tools, etc).
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"compilerOptions": {
// enable incremental builds.
"composite": true,
// enable type-stripping.
// "allowImportingTsExtensions": true,
// "rewriteRelativeImportExtensions": true,
// maximize type checking.
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"noUncheckedSideEffectImports": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
// Blocks
"jsx": "react",
"jsxFactory": "Devvit.createElement",
"jsxFragmentFactory": "Devvit.Fragment",
"types": [], // projects add types needed.
"isolatedDeclarations": true, // require explicit types.
// improve compatibility with compilers that aren't type system aware.
"isolatedModules": true,
// allow JSON type-checking and imports.
"module": "ESNext",
"moduleResolution": "Bundler",
// assume library types are checked and compatible.
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"sourceMap": true,
"target": "ES2020",
// don't transform type-only imports.
"verbatimModuleSyntax": true
},
// https://github.com/microsoft/TypeScript/wiki/Performance#misconfigured-include-and-exclude
"exclude": ["dist", "node_modules", ".*/"]
}