generated from TexteaInc/fe-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
81 lines (78 loc) · 1.83 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"references": [
{
"path": "./packages/fe"
},
{
"path": "./packages/database"
}
],
"compilerOptions": {
"paths": {
"@nlpdev/database": [
"./packages/database/src"
]
},
// Classification follows https://www.typescriptlang.org/tsconfig
// Type Checking
"strict": true,
"strictNullChecks": true,
"exactOptionalPropertyTypes": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
// noPropertyAccessFromIndexSignature: false,
// noUncheckedIndexedAccess: false,
// noUnusedLocals: false,
// noUnusedParameters: false,
// Modules
"module": "ESNext",
"moduleResolution": "node",
"resolveJsonModule": true,
// Exclude everything by default. Include them in each project on-demand
"types": [
"web"
],
"typeRoots": [
"node_modules/@types"
],
// Emit
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"stripInternal": true,
// skip type emit for @internal types
// JavaScript Support
"allowJs": true,
"checkJs": false,
// Interop Constraints
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
// Language and Environment
"jsx": "react-jsx",
"lib": [
"DOM",
"ES2019"
],
// don't add "DOM", we use @types/web
"target": "ES2019",
"useDefineForClassFields": true,
// Projects
"composite": true,
"incremental": true,
// Completeness
"skipLibCheck": true
// skip all type checks for .d.ts files
},
"files": [],
"ts-node": {
"compilerOptions": {
"module": "CommonJS"
},
"transpileOnly": true
}
}