-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
53 lines (50 loc) · 1.39 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
{
"compilerOptions": {
"typeRoots": [
"./node_modules/@types", // 默认值
"./src/types",
"vite-plugin-glsl/ext"
],
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"esModuleInterop": true,
/* Bundler mode */
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"allowJs": true, //编译时允许有js
"allowSyntheticDefaultImports": true, //允许引入没有默认导出的模块
"forceConsistentCasingInFileNames": true,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"baseUrl": "./", // 解析非相对模块的基础地址,默认是当前目录
"paths": {
"@/*": ["./src/*"], // 路径映射,相对于baseUrl
"pinia-plugin-persist": [
"./node_modules/pinia-plugin-persist/dist/index.d.ts"
]
}
},
"exclude": ["node_modules", "dist"],
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.md",
"src/**/*.vue",
"src/**/*.ts",
"src/**/*.js",
"./auto-imports.d.ts",
"./shims.d.ts"
],
"references": [{ "path": "./tsconfig.node.json" }]
}