forked from peng-xiao-shuai/vite-vue-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
36 lines (36 loc) · 1.05 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
{
"include": ["src/*", "src/**/*.vue", "src/**/*.tsx", "src/**/*.jsx", "src/**/*.ts", "src/**/*.js"],
"exclude": [
"node_modules"
],
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
},
// typeRoots option has been previously configured
// 以严格模式解析
"strict": true,
"strictPropertyInitialization": false,
// 在.tsx文件里支持JSX
"jsx": "preserve",
// 使用的JSX工厂函数
// "jsxFactory": "h",
// 允许从没有设置默认导出的模块中默认导入
"allowSyntheticDefaultImports": true,
// 启用装饰器
"experimentalDecorators": true,
"strictFunctionTypes": false,
// 允许编译javascript文件
"allowJs": true,
// 采用的模块系统
"module": "esnext",
// 编译输出目标 ES 版本
"target": "es5",
// 在表达式和声明上有隐含的any类型时报错
"noImplicitAny": true,
"moduleResolution": "Node",
"lib": ["dom", "es5", "es6", "es7", "es2015.promise"],
"sourceMap": true,
"pretty": true
}
}