forked from zengxiaozeng/vue-typescript-admin-element-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
63 lines (63 loc) · 1.24 KB
/
tslint.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
55
56
57
58
59
60
61
62
63
{
"defaultSeverity": "none",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
"rules": {
"indent": [true, "spaces", 2],
"interface-name": false,
"no-consecutive-blank-lines": false,
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [true, "single"],
"semicolon": [
false,
"always"
],
"no-console": false,
"trailing-comma": [true, {
"singleline": "never",
"multiline": {
"objects": "ignore",
"arrays": "ignore",
"functions": "never",
"typeLiterals": "ignore"
}
}],
"arrow-parens": [
false,
"as-needed"
],
"ban-type": [
true,
["object", "User {} instead."],
["string"]
],
"ban": [
true,
"eval",
{
"name": "$",
"message": "please don't"
},
["describe", "only"],
{
"name": ["it", "only"],
"message": "don't focus tests"
},
{
"name": ["chai", "assert", "equal"],
"message": "Use 'strictEqual' instead."
},
{
"name": ["*", "forEach"],
"message": "Use a regular for loop instead."
}
]
}
}