-
Notifications
You must be signed in to change notification settings - Fork 4
/
tslint.json
183 lines (183 loc) · 7.01 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
{
"extends": "tslint:all",
"rules": {
"adjacent-overload-signatures": true,
"align": false,
"array-type": false,
"arrow-return-shorthand": true,
"arrow-parens": false,
"await-promise": true,
"ban-comma-operator": false,
"ban-ts-ignore": false,
"ban-types": [true, ["Object", "Use {} instead"], ["String", "Use string instead"], ["Number", "Use number instead"]],
"binary-expression-operand-order": true,
"class-name": true,
"comment-format": [true, "check-space", {
"ignore-words": ["HACK", "REVIEW", "TODO"]
}],
"callable-types": false,
"completed-docs": [true, {
"classes": true,
"enums": true,
"enum-members": { "visibilities": ["exported"], "tags": { "existence": ["internal"] }},
"functions": true,
"interfaces": true,
"namespaces": { "visibilities": ["exported"], "tags": { "existence": ["internal"] }},
"properties": true,
"types": { "visibilities": ["exported"] } ,
"variables": { "visibilities": ["exported"], "tags": { "existence": ["internal"] }}
}],
"curly": true,
"cyclomatic-complexity": [true, 30],
"deprecation": true,
"encoding": true,
"ban": false,
"eofline": false,
"file-header": false,
"file-name-casing": [true, "kebab-case"],
"forin": true,
"import-blacklist": [true, "relfect-metadata"],
"import-spacing": true,
"indent": [true, "spaces", 4],
"interface-name": false,
"interface-over-type-literal": true,
"jsdoc-format": true,
"label-position": false,
"linebreak-style": [true, "LF"],
"match-default-export-name": false,
"max-classes-per-file": [true, 3],
"max-file-line-count": [true, 2000],
"max-line-length": [true, 140],
"member-access": [true, "no-public"],
"member-ordering": [true, {
"order": "fields-first"
}],
"new-parens": true,
"newline-before-return": true,
"newline-per-chained-call": false,
"no-angle-bracket-type-assertion": false,
"no-any": false,
"no-arg": true,
"no-bitwise": false,
"no-boolean-literal-compare": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": true,
"no-console": false,
"no-construct": true,
"no-debugger": true,
"no-default-export": false,
"no-duplicate-imports": false,
"no-duplicate-super": true,
"no-duplicate-switch-case": true,
"no-duplicate-variable": true,
"no-dynamic-delete": true,
"no-empty": false,
"no-empty-interface": false,
"no-eval": true,
"no-floating-promises": true,
"no-for-in-array": true,
"no-implicit-dependencies": [true, "dev"],
"no-import-side-effect": false,
"no-inferrable-types": [true, "ignore-params", "ignore-properties"],
"no-inferred-empty-object-type": true,
"no-internal-module": false,
"no-invalid-template-strings": true,
"no-invalid-this": false,
"no-irregular-whitespace": true,
"no-magic-numbers": false,
"no-mergeable-namespace": false,
"no-misused-new": true,
"no-namespace": false,
"no-non-null-assertion": false,
"no-null-keyword": false,
"no-object-literal-type-assertion": false,
"no-parameter-properties": true,
"no-parameter-reassignment": false,
"no-redundant-jsdoc": true,
"no-reference": true,
"no-reference-import": true,
"no-require-imports": true,
"no-return-await":false,
"no-shadowed-variable": true,
"no-sparse-arrays": true,
"no-string-literal": false,
"no-string-throw": true,
"no-submodule-imports": false,
"no-switch-case-fall-through": false,
"no-this-assignment": [true, {
"allowed-names": ["^self$"],
"allow-destructuring": true
}],
"no-trailing-whitespace": true,
"no-unbound-method": [true, "ignore-static"],
"no-unnecessary-callback-wrapper": true,
"no-unnecessary-class": true,
"no-unnecessary-initializer": false,
"no-unnecessary-qualifier": false,
"no-unnecessary-type-assertion": true,
"no-unsafe-any": false,
"no-unsafe-finally": true,
"no-unused-expression": false,
"no-var-keyword": true,
"no-var-requires": true,
"no-void-expression": true,
"number-literal-format": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": true,
"object-literal-sort-keys": false,
"one-line": true,
"one-variable-per-declaration": false,
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"ordered-imports": [true, {
"import-sources-order": "any",
"module-source-path": "basename",
"named-imports-order": "case-insensitive",
"group-imports": true
}],
"prefer-conditional-expression": [true, "check-else-if"],
"prefer-const": [true, {
"destructuring": "all"
}],
"prefer-for-of": true,
"prefer-function-over-method": [true, "allow-public", "allow-protected"],
"prefer-method-signature": true,
"prefer-object-spread": true,
"prefer-readonly": true,
"prefer-switch": false,
"prefer-template": true,
"prefer-while": true,
"promise-function-async": true,
"quotemark": [true, "single", "avoid-template", "avoid-escape"],
"radix": false,
"restrict-plus-operands": true,
"return-undefined": true,
"semicolon": false,
"space-before-function-paren": [true, {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-within-parens": [true, "never"],
"static-this": false,
"strict-boolean-expressions": false,
"strict-comparisons": [
true,
{
"allow-object-equal-comparison": true,
"allow-string-order-comparison": false
}
],
"strict-type-predicates": true,
"switch-default": false,
"switch-final-break": false,
"trailing-comma": [true, {
"multiline": "always",
"singleline": "never"
}],
"triple-equals": true,
"typedef": false,
"type-literal-delimiter": false,
"typedef-whitespace": true,
"unified-signatures": true,
"use-default-type-parameter": false,
"use-isnan": true,
"variable-name": [true, "check-format", "allow-pascal-case"],
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-rest-spread", "check-type", "check-typecast", "check-type-operator", "check-preblock"]
}
}