-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtslint.json
More file actions
104 lines (104 loc) · 3.29 KB
/
tslint.json
File metadata and controls
104 lines (104 loc) · 3.29 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"defaultSeverity": "error",
"rulesDirectory" : ["node_modules/tslint-eslint-rules/dist/rules"],
"extends": [
"tslint-sonarts",
"tslint:recommended",
"tslint-eslint-rules"
],
"jsRules": {},
"rules": {
"no-unused-array": [true, "always"],
"no-dead-store": [true, "always"],
"no-ignored-return": [true, "always"],
"no-self-assignement": [true, "always"],
"no-array-delete": [true, "always"],
"semicolon": [true, "always"],
"whitespace": [true, "check-branch", "check-operator", "check-typecast", "check-type", "check-type-operator", "check-preblock", "check-separator", "check-decl"],
"no-duplicate-string": ["error", 4],
"max-union-size": ["error", 10],
"array-type": [true, "array-simple"],
"no-commented-code": false,
"cognitive-complexity": false,
"no-multiline-string-literals": false,
"no-nested-template-literals": false,
"no-big-function": [true, 300],
"no-collapsible-if": false,
"triple-equals": [true, "allow-null-check", "allow-undefined-check"],
"typedef-whitespace": [
true,
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"trailing-comma": [
true,
{
"multiline": {
"objects": "ignore",
"arrays": "always",
"functions": "never",
"typeLiterals": "ignore"
}
}
],
"arrow-parens": [true, "ban-single-arg-parens"],
"comment-format": [true],
"prefer-for-of": false,
"arrow-return-shorthand": { "severity" : "warning" },
"no-console": { "severity" : "warning" },
"variable-name": [
"allow-leading-underscore"
],
"member-ordering": [
true,
{
"order": [
{
"name": "static - fields - instance",
"kinds": [
"static-field",
"instance-field"
]
}
]
}
],
"no-empty": false,
"object-literal-shorthand" : true,
"max-line-length": [true, 250],
"no-consecutive-blank-lines" : [true, 2],
"no-string-literal" : false,
"object-literal-sort-keys": false,
"quotemark": [true, "single", "avoid-escape"],
"no-var-requires": false,
"max-classes-per-file": [
false, 2
],
"only-arrow-functions": [
false
],
"indent": [
true,
"spaces",
2
],
"ter-indent": [
true,
2,
{ "SwitchCase": 1 }
],
"align" : [false]
}
}