-
Notifications
You must be signed in to change notification settings - Fork 177
/
tsconfig.json
45 lines (45 loc) · 1.73 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
{
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"isolatedModules": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"allowJs": true,
"types": ["vite/client"],
"checkJs": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"noImplicitAny": false, // 允许隐式的any类型(某些第三方库有隐式的any类型)
"strictNullChecks": true, // 不允许把null、undefined赋值给其他类型的变量
"strictPropertyInitialization": true, // 类的实例属性必须初始化
"noImplicitThis": true, // 不允许this有隐式的any类型
"noUnusedLocals": false, // 检查只声明、未使用的局部变量(只提示不报错)
"noUnusedParameters": true, // 检查未使用的函数参数(只提示不报错)
"removeComments": true, // 移除代码中的注释
"typeRoots":["node_modules/@types", "packages/**/es/*.d.ts"], // 将这些文件夹下的包自动导入 TypeScript 声明
"baseUrl": ".",
"paths": {
"@open-data-v/designer": ["packages/designer/*"],
"@open-data-v/data": ["packages/data/*"],
"@open-data-v/base": ["packages/base/*"],
"@open-data-v/scripts": ["packages/scripts/*"],
"@open-data-v/ui": ["packages/ui/*"]
},
},
"include": [
"packages/**/*.ts",
"packages/**/*.d.ts",
"packages/**/*.tsx",
"packages/**/*.vue",
"resource/**/*.ts", "resource/**/*.d.ts", "resource/**/*.tsx", "resource/**/*.vue",
],
"exclude": ["**/node_modules/**", "dist", "**/*.js"]
}