-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathtsconfig.json
More file actions
42 lines (42 loc) · 1.49 KB
/
tsconfig.json
File metadata and controls
42 lines (42 loc) · 1.49 KB
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
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"baseUrl": ".",
// https://vite.dev/config/build-options.html#build-target
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "Bundler",
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
// This setting lets you specify a file for storing incremental compilation information as a part of composite projects which enables faster building of larger TypeScript codebases.
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.tsbuildinfo",
"strict": true,
"allowJs": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"noEmit": true,
"paths": {
"@/*": ["./src/*"]
},
"types": ["node", "vite/client"],
// 自定义配置
"noImplicitAny": false, // 禁用 隐式的any错误
"removeComments": true, // 移除 ts注释
"experimentalDecorators": true, // 启用实验性的装饰器支持
"strictFunctionTypes": false, // 禁用严格函数类型检查
"strictNullChecks": false, // 禁用严格的空值检查
"allowSyntheticDefaultImports": true, // 允许默认导入
"forceConsistentCasingInFileNames": true // 强制在文件名中使用一致的大小写
},
"include": [
"src/**/*.ts",
"src/**/*.vue",
"vite.config.ts",
"vitest.config.ts",
"eslint.config.ts",
"src/**/*.d.ts"
],
"exclude": ["node_modules", "dist", "src/**/__tests__/*"]
}