-
Notifications
You must be signed in to change notification settings - Fork 904
/
tsconfig.json
56 lines (56 loc) · 1.8 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
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
"module": "ESNext",
/* Bundler mode | 编译相关 */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"removeComments": true,
"useUnknownInCatchVariables": false, //是否允许在 catch 语句中使用 unknown 类型的变量。
"declarationMap": false, //是否为每个生成的 .d.ts 文件生成源映射。
"inlineSources": false, //是否将源文件的内容嵌入到源映射中。
"skipLibCheck": true, //跳过所有的 *.d.ts 文件的类型检查。
"preserveWatchOutput": true, //在 TypeScript 的观察模式下保留控制台输出。
"experimentalDecorators": true, //启用对装饰器的实验性支持。
"noLib": false, //不排除默认库文件(比如 lib.d.ts)的类型检查。
"allowSyntheticDefaultImports": true,
"jsxImportSource": "vue",
"allowJs": true,
/* Linting | 代码质量相关 */
"strict": true,
"useDefineForClassFields": true,
"noImplicitOverride": true,
"noUnusedLocals": true,
"forceConsistentCasingInFileNames": true,
"noUnusedParameters": false,
"strictFunctionTypes": false,
"noImplicitAny": false,
"lib": ["dom", "esnext", "DOM.Iterable"],
"types": ["node", "vite/client"],
"paths": {
"@/*": ["src/*"]
}
},
"include": [
"**/*.d.ts",
"mock/**/*",
"mocks/**/*",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"types/**/*.d.ts",
"types/**/*.ts"
],
"exclude": ["node_modules", "dist", "**/*.js", "**/*.md", "src/**/*.md"],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}