-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.json
54 lines (51 loc) · 1.19 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
{
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx",
"custom-types.d.ts"
],
"exclude": [
"node_modules"
],
"compilerOptions": {
"strict": true,
"baseUrl": ".",
"outDir": "./dist/",
"noImplicitThis": true,
"target": "ESNext",
"module": "ESNext",
"sourceMap": true,
// vue必须的配置
"jsx": "preserve",
"jsxImportSource": "vue",
// 其他控制
"allowJs": true,
"moduleResolution": "bundler",
"resolveJsonModule": true,
"verbatimModuleSyntax": true,
// 推荐的配置
/* allowSyntheticDefaultImports 配置介绍
当allowSyntheticDefaultImports 设置为true 的时候,允许下面的导入:
import React from "react";
用来替代:
import * as React from "react";*/
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"useDefineForClassFields": true,
"lib": [
"ESNext", "DOM", "DOM.Iterable"
//没有“ScriptHost”,因为Vue 3放弃了对IE的支持,
],
"types": [],
"paths": {
"@/*": [
"src/*"
]
}
}
}