forked from egoist/vue-feather-icons
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsconfig.json
36 lines (34 loc) · 1.38 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": [
"types/*.d.ts",
],
"compilerOptions": {
"module": "commonjs",
"lib": [
"esnext",
"dom.iterable",
"dom"
],
"target": "es5",
"checkJs": false,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"moduleResolution": "node",
"jsxFactory": "VueJSX",
/* 严格的类型检查选项 */
"strict": true, // 启用所有严格类型检查选项
"strictNullChecks": true, // 启用严格的 null 检查
"noImplicitThis": true, // 当 this 表达式值为 any 类型的时候,生成一个错误
"alwaysStrict": true, // 以严格模式检查每个模块,并在每个文件里加入 'use strict'
/* 额外的检查 */
"noUnusedLocals": true, // 有未使用的变量时,抛出错误
"noUnusedParameters": false, // 有未使用的参数时,抛出错误
"noImplicitReturns": true, // 并不是所有函数里的代码都有返回值时,抛出错误
"noFallthroughCasesInSwitch": true, // 报告 switch 语句的 fallthrough 错误。(即,不允许 switch 的 case 语句贯穿)
},
"exclude": [
"dist",
"node_modules"
]
}