-
Notifications
You must be signed in to change notification settings - Fork 9
/
tslint.json
172 lines (168 loc) · 4.82 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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"extends": ["tslint-react"],
"rules": {
"jsx-no-multiline-js": false,
"jsx-no-lambda": false,
"jsx-boolean-value": false,
"adjacent-overload-signatures": true,
"member-ordering": [
true,
{
"order": [
"static-field",
"static-method",
"instance-field",
"constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"no-inferrable-types": true,
"no-internal-module": true,
"no-magic-numbers": false,
"no-namespace": true,
"no-non-null-assertion": true,
"no-reference": true,
"no-var-requires": true,
"only-arrow-functions": true,
"prefer-for-of": true,
"curly": true,
"forin": true,
"label-position": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-super": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-for-in-array": true,
"no-inferred-empty-object-type": true,
"no-invalid-this": true,
"no-misused-new": true,
"no-object-literal-type-assertion": true,
"no-shadowed-variable": true,
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-unbound-method": true,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"radix": true,
"restrict-plus-operands": true,
"strict-boolean-expressions": [true, "allow-null-union", "allow-undefined-union", "allow-string", "allow-number", "allow-mix"],
"switch-default": true,
"triple-equals": [
true,
"allow-null-check"
],
"use-isnan": true,
"cyclomatic-complexity": true,
"eofline": true,
"indent": [
true,
"spaces",
2
],
"max-file-line-count": [
true,
500
],
"no-default-export": false,
"no-mergeable-namespace": true,
"no-require-imports": true,
"object-literal-sort-keys": false,
"prefer-const": true,
"trailing-comma": [
false,
{
"multiline": {
"objects": "never",
"arrays": "always",
"functions": "never",
"typeLiterals": "ignore"
}
}
],
"arrow-parens": [
true,
"ban-single-arg-parens"
],
"array-type": [
true,
"array"
],
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"comment-format": [
true,
"check-space"
],
"import-spacing": true,
"interface-over-type-literal": false,
"jsdoc-format": true,
"newline-before-return": false,
"new-parens": true,
"no-angle-bracket-type-assertion": true,
"no-boolean-literal-compare": true,
"no-consecutive-blank-lines": [true],
"no-trailing-whitespace": [ true, "ignore-comments" ],
"no-unnecessary-initializer": true,
"object-literal-key-quotes": [
true,
"consistent"
],
"one-line": [
true,
"check-catch",
"check-finally",
"check-else",
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"ordered-imports": [true, {
"import-sources-order": "any",
"named-imports-order": "case-insensitive"
}],
"prefer-function-over-method": false,
"prefer-method-signature": true,
"quotemark": [
true,
"single"
],
"semicolon": [
true,
"always",
"strict-bound-class-methods"
],
"variable-name": [false, "allow-leading-underscore"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast",
"check-preblock"
]
}
}