-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtsconfig.json
53 lines (53 loc) · 1.14 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": {
// 目标 ECMAScript 版本
"target": "esnext",
// 模块解析策略
"module": "esnext",
// 启用所有严格类型检查选项
"strict": true,
// 启用默认导出的 esModuleInterop
"esModuleInterop": true,
// 在文件名中强制使用一致的大小写
"forceConsistentCasingInFileNames": true,
// 模块解析策略
"moduleResolution": "Bundler",
// 允许导入 JSON 模块
"resolveJsonModule": true,
// 每个文件都作为单独的模块进行处理
"isolatedModules": true,
// 处理 .tsx 文件时的 JSX 选项
"jsx": "preserve",
"lib": [
"dom",
"esnext"
],
"paths": {
"@/*": [
"./core/*"
],
"@vvide/vue-styled-components": [
"./core"
]
},
"types": [
"@vue/test-utils",
"vitest"
],
"skipLibCheck": true
},
// 需要编译的文件或目录
"include": [
"core",
"vite.config.ts",
"commitlint.config.ts",
"example",
"docs"
],
// 排除的文件或目录
"exclude": [
"node_modules",
"dist",
],
"compileOnSave": false
}