-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
43 lines (43 loc) · 1.24 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
{
"compilerOptions": {
"target": "es2017",
"module": "CommonJS",
"removeComments": false,
"preserveConstEnums": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"outDir": "lib",
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true,
"sourceMap": true,
"baseUrl": ".",
"rootDir": ".",
"jsx": "react",
"jsxFactory": "React.createElement",
"allowJs": true,
"resolveJsonModule": true,
"typeRoots": ["node_modules/@types", "global.d.ts"],
"paths": {
// 让ts识别的绝对路径
"@actions": ["src/actions/"],
"@actions/*": ["src/actions/*"],
"@assets/*": ["src/assets/*"],
"@components": ["src/components/"],
"@components/*": ["src/components/*"],
"@constants/*": ["src/constants/*"],
"@pages/*": ["src/pages/*"],
"@reducers": ["src/reducers"],
"@reducers/*": ["src/reducers/*"],
"@style/*": ["src/style/*"],
"@utils": ["src/utils"],
"@utils/*": ["src/utils/*"],
"@service": ["src/service/"],
"@hooks": ["src/hooks/"]
}
},
"exclude": ["node_modules", "dist"],
"compileOnSave": false
}