forked from arvinxx/power-yuque
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
40 lines (34 loc) · 1 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
{
"include": ["./src", "./types", "config", "scripts", "tests"],
"compilerOptions": {
/* Basic Options */
"jsx": "react-jsx",
/* Strict Type-Checking Options */
"strict": true,
/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
/* Module Resolution Options */
"moduleResolution": "node",
"esModuleInterop": true,
"resolveJsonModule": true,
/* Experimental Options */
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
/* Advanced Options */
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
// 下面这些选项对 babel 编译 TypeScript 没有作用但是可以让 VSCode 等编辑器正确提示错误
"target": "ES5",
"module": "ESNext",
// Alias 路径
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"]
}
},
"exclude": [".eslintrc.js", ".commitlintrc.js"]
}