-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
64 lines (64 loc) · 1.6 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
58
59
60
61
62
63
64
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "tsconfig",
"presets": [
[
"react-app",
{
"flow": false,
"typescript": true
}
]
],
"compilerOptions": {
// from @tsconfig/node20
"target": "es2022",
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
// taken from @tsconfig/strictest
"strict": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noImplicitAny": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// taken from 'https://tsx.is/typescript'
// Treat files as modules even if it doesn't use import/export
"moduleDetection": "auto",
// Ignore module structure
"module": "Preserve",
// Allow JSON modules to be imported
"resolveJsonModule": true,
// Allow JS files to be imported from TS and vice versa
"allowJs": true,
// Use correct ESM import behavior
"esModuleInterop": true,
// Disallow features that require cross-file awareness
"isolatedModules": true,
"verbatimModuleSyntax": false,
// custom
"jsx": "preserve",
// "jsxImportSource": "react",
"composite": true,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": false,
"tsBuildInfoFile": ".cache/.tsbuildinfo"
},
"include": [
"src",
],
"exclude": [
"node_modules",
"dist"
]
}