-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
250 lines (250 loc) · 7.45 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
{
"rulesDirectory": [
"node_modules/tslint-clean-code/dist/src",
"node_modules/tslint-microsoft-contrib"
],
"rules": {
"class-name": true,
"comment-format": [true, "check-space"],
"indent": [true, "spaces", 4],
"no-duplicate-variable": true,
"no-eval": true,
"no-internal-module": true,
"no-trailing-whitespace": true,
"no-unsafe-finally": true,
"no-var-keyword": true,
"quotemark": [true, "double"],
"semicolon": [true, "always"],
"triple-equals": [true, "allow-null-check"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [true, "ban-keywords"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"array-type": [true, "array"],
"arrow-return-shorthand": false,
"await-promise": false,
"adjacent-overload-signatures": false,
"align": [false],
"arrow-parens": false,
"ban": false,
"callable-types": true,
"chai-prefer-contains-to-index-of": true,
"completed-docs": [false],
"curly": true,
"cyclomatic-complexity": [false],
"eofline": false,
"export-name": false,
"file-header": [false],
"forin": true,
"function-constructor": true,
"function-name": [
true,
{
"static-method-regex": "^[a-z][\\w\\d]+$"
}
],
"id-length": [true, ["_", "T"]],
"import-blacklist": false,
"import-name": false,
"import-spacing": true,
"increment-decrement": false,
"insecure-random": true,
"interface-name": false,
"interface-over-type-literal": false,
"jquery-deferred-must-complete": true,
"jsdoc-format": false,
"label-position": true,
"linebreak-style": [true, "LF"],
"max-classes-per-file": [false],
"max-file-line-count": [false],
"max-func-body-length": [
true,
100,
{
"ignore-parameters-to-function-regex": "describe"
}
],
"max-line-length": [true, 140],
"max-func-args": [true, 3],
"member-access": true,
"member-ordering": [false],
"missing-optional-annotation": true,
"min-class-cohesion": false,
"mocha-avoid-only": true,
"mocha-no-side-effect-code": true,
"mocha-unneeded-done": true,
"new-parens": true,
"newspaper-order": true,
"no-angle-bracket-type-assertion": false,
"no-any": false,
"no-arg": true,
"no-banned-terms": true,
"no-bitwise": true,
"no-boolean-literal-compare": false,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": [true],
"no-console": [true, "debug", "info", "log", "time", "timeEnd", "trace"],
"no-constant-condition": true,
"no-construct": true,
"no-control-regex": true,
"no-debugger": true,
"no-default-export": false,
"no-delete-expression": true,
"no-disable-auto-sanitization": true,
"no-document-domain": true,
"no-document-write": true,
"no-duplicate-parameter-names": true,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-empty": true,
"no-empty-interface": true,
"no-empty-line-after-opening-brace": false,
"no-exec-script": true,
"no-flag-args": true,
"no-floating-promises": false,
"no-for-in": true,
"no-for-in-array": false,
"no-for-each-push": true,
"no-function-expression": true,
"no-http-string": true,
"no-import-side-effect": true,
"no-inferrable-types": false,
"no-inferred-empty-object-type": false,
"no-inner-html": true,
"no-invalid-regexp": true,
"no-invalid-template-strings": true,
"no-jquery-raw-elements": true,
"no-magic-numbers": false,
"no-mergeable-namespace": false,
"no-missing-visibility-modifiers": false,
"no-misused-new": true,
"no-multiline-string": [true],
"no-multiple-var-decl": true,
"no-namespace": false,
"no-null-keyword": false,
"no-octal-literal": true,
"no-parameter-properties": false,
"no-reference": true,
"no-reference-import": true,
"no-regex-spaces": true,
"no-require-imports": false,
"no-shadowed-variable": false,
"no-single-line-block-comment": true,
"no-sparse-arrays": true,
"no-string-based-set-immediate": true,
"no-string-based-set-interval": true,
"no-string-based-set-timeout": true,
"no-string-literal": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"no-this-assignment": true,
"no-typeof-undefined": true,
"no-unbound-method": false,
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-class": true,
"no-unnecessary-field-initialization": true,
"no-unnecessary-initializer": true,
"no-unnecessary-local-variable": true,
"no-unnecessary-override": true,
"no-unnecessary-qualifier": false,
"no-unnecessary-semicolons": true,
"no-unsafe-any": false,
"no-unsupported-browser-code": false,
"no-unused-expression": true,
"no-var-requires": false,
"no-void-expression": false,
"no-with-statement": true,
"non-literal-require": true,
"object-literal-key-quotes": false,
"object-literal-shorthand": false,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"one-variable-per-declaration": true,
"only-arrow-functions": [
true,
"allow-declarations",
"allow-named-functions"
],
"ordered-imports": [false],
"possible-timing-attack": true,
"prefer-array-literal": true,
"prefer-const": true,
"prefer-for-of": false,
"prefer-function-over-method": false,
"prefer-method-signature": true,
"prefer-template": false,
"prefer-type-cast": false,
"strict-type-predicates": false,
"promise-function-async": false,
"promise-must-complete": true,
"radix": false,
"react-a11y-anchors": true,
"react-a11y-aria-unsupported-elements": true,
"react-a11y-event-has-role": true,
"react-a11y-image-button-has-alt": true,
"react-a11y-img-has-alt": true,
"react-a11y-lang": true,
"react-a11y-meta": true,
"react-a11y-props": true,
"react-a11y-proptypes": true,
"react-a11y-role": true,
"react-a11y-role-has-required-aria-props": true,
"react-a11y-role-supports-aria-props": true,
"react-a11y-tabindex-no-positive": true,
"react-a11y-titles": true,
"react-anchor-blank-noopener": true,
"react-iframe-missing-sandbox": true,
"react-no-dangerous-html": true,
"react-this-binding-issue": true,
"react-tsx-curly-spacing": true,
"react-unused-props-and-state": true,
"reserved-keywords": false,
"restrict-plus-operands": false,
"space-before-function-paren": false,
"strict-boolean-expressions": false,
"switch-default": false,
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": "ignore"
}
],
"try-catch-first": true,
"typedef": [
true,
"parameter",
"property-declaration",
"member-variable-declaration"
],
"unified-signatures": true,
"unnecessary-bind": false,
"use-isnan": true,
"use-named-parameter": true,
"no-useless-files": true,
"no-map-without-usage": true,
"no-complex-conditionals": [true, 2],
"prefer-dry-conditionals": [true, 2]
}
}