Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
86 lines (85 loc) · 2.08 KB
/
Copy pathtsconfig.json
File metadata and controls
86 lines (85 loc) · 2.08 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
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
82
83
84
85
86
{
"compilerOptions": {
// Type Checking
"strict": true,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
// Modules
"baseUrl": "./",
"module": "esnext",
"moduleResolution": "node",
"paths": {
"@/*": [
"./src/*"
]
},
"resolveJsonModule": true,
"rootDir": "./src",
// Emit
"declaration": false,
// "declarationDir": "./dist",
// "declarationMap": true,
// "emitDeclarationOnly": false,
"newLine": "lf",
"noEmit": false,
"noEmitOnError": false,
"outDir": "./dist",
// "outFile": "",
// "removeComments": false,
"sourceMap": true,
// JavaScript Support
"allowJs": false,
"checkJs": false,
// Editor Support
// "disableSizeLimit": false,
// "plugins": [],
// Interop Constrains
// 不需要写 import * as xxx from ""
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
// "preserveSymlinks": false,
"verbatimModuleSyntax": true,
// Language and Environment
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
// "jsx": "react-jsx",
// "jsxFactory": "React.createElement",
// "jsxFragmentFactory": "React.Fragment",
// "jsxImportSource": "react",
// "reactNamespace": "React",
"lib": [
"esnext"
],
// "noLib": false,
"moduleDetection": "auto",
"target": "esnext",
// Projects
"composite": false,
// "incremental": false,
// "tsBuildInfoFile": ".tsbuildinfo",
// Completeness
"skipDefaultLibCheck": true,
"skipLibCheck": true
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules",
"dist"
],
"watchOptions": {
// Watch Options
"watchFile": "useFsEvents",
"watchDirectory": "useFsEvents",
"excludeDirectories": [
"node_modules",
"dist"
]
}
}