-
Notifications
You must be signed in to change notification settings - Fork 2
/
module.js
234 lines (234 loc) · 8.66 KB
/
module.js
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
module.exports = {
extends: [
'rxjs-tslint-rules'
],
rules: {
'adjacent-overload-signatures': true,
'angular-whitespace': [ true, 'check-interpolation', 'check-semicolon' ],
'array-type': [ true, 'array' ],
'arrow-parens': true,
'arrow-return-shorthand': true,
'await-promise': true,
'ban-comma-operator': true,
'ban-ts-ignore': true,
'ban-types': [
true,
[ 'Boolean', 'Use boolean instead.' ],
[ 'Number', 'Use number instead.' ],
[ 'OpaqueToken', 'Use InjectionToken instead.' ],
[ 'String', 'Use string instead.' ]
],
'callable-types': true,
'class-name': true,
'comment-format': [ true, 'check-space', 'check-uppercase' ],
'component-class-suffix': true,
'contextual-decorator': true,
'contextual-lifecycle': true,
'curly': true,
'deprecation': true,
'directive-class-suffix': true,
'encoding': true,
'eofline': true,
'file-name-casing': [ true, 'kebab-case' ],
'import-blacklist': [
true,
'@angular/http',
'core-js',
'lodash-es'
],
'import-destructuring-spacing': true,
'import-spacing': true,
'increment-decrement': true,
'indent': [ true, 'spaces' ],
'interface-name': [ true, 'always-prefix' ],
'interface-over-type-literal': true,
'invalid-void': [ true, { 'allow-generics': [ 'Promise' ] } ],
'label-position': true,
'linebreak-style': [ true, 'LF' ],
'max-classes-per-file': [ true, 2 ],
'max-line-length': [ true, 140 ],
'member-access': true,
'member-ordering': [ true, { alphabetize: true, order: 'instance-sandwich' } ],
'new-parens': true,
'newline-before-return': true,
'newline-per-chained-call': true,
'no-arg': true,
'no-attribute-decorator': true,
'no-bitwise': true,
'no-conditional-assignment': true,
'no-conflicting-lifecycle': true,
'no-consecutive-blank-lines': true,
'no-console': true,
'no-construct': true,
'no-debugger': true,
'no-default-export': true,
'no-duplicate-imports': true,
'no-duplicate-super': true,
'no-dynamic-delete': true,
'no-empty': true,
'no-empty-interface': true,
'no-eval': true,
'no-for-in': true,
'no-forward-ref': true,
'no-host-metadata-property': true,
'no-implicit-dependencies': true,
'no-inferrable-types': true,
'no-input-rename': true,
'no-inputs-metadata-property': true,
'no-internal-module': true,
'no-invalid-this': true,
'no-irregular-whitespace': true,
'no-lifecycle-call': true,
'no-misused-new': true,
'no-namespace': true,
'no-non-null-assertion': true,
'no-null-undefined-union': true,
'no-output-native': true,
'no-output-on-prefix': true,
'no-output-rename': true,
'no-outputs-metadata-property': true,
'no-parameter-reassignment': true,
'no-pipe-impure': true,
'no-queries-metadata-property': true,
'no-redundant-jsdoc': true,
'no-reference': true,
'no-reference-import': true,
'no-require-imports': true,
'no-return-await': true,
'no-shadowed-variable': true,
'no-sparse-arrays': true,
'no-string-literal': true,
'no-string-throw': true,
'no-submodule-imports': [
true,
'@angular/common/http',
'@angular/core/testing',
'@angular/platform-browser/animations',
'@angular/platform-browser-dynamic/testing',
'@angular/router/testing',
'@ngrx/effects/testing',
'@nrwl/nx/testing',
'angulartics2/ga',
'lodash-es',
'regenerator-runtime/runtime',
'rxjs/operators',
'rxjs-etc/operators',
'zone.js/dist'
],
'no-switch-case-fall-through': true,
'no-tautology-expression': true,
'no-this-assignment': [ true, { 'allow-destructuring': true } ],
'no-trailing-whitespace': true,
'no-unnecessary-initializer': true,
'no-unsafe-finally': true,
'no-unused-expression': true,
'no-var-keyword': true,
'no-var-requires': true,
'object-literal-key-quotes': [ true, 'consistent-as-needed' ],
'object-literal-shorthand': true,
'object-literal-sort-keys': true,
'one-line': [ true, 'check-catch', 'check-else', 'check-finally', 'check-open-brace', 'check-whitespace' ],
'one-variable-per-declaration': [ true, 'ignore-for-loop' ],
'ordered-imports': [ true, { 'named-imports-order': 'lowercase-last' } ],
'prefer-const': true,
'prefer-for-of': true,
'prefer-function-over-method': [ true, 'allow-public', 'allow-protected' ],
'prefer-inline-decorator': true,
'prefer-method-signature': true,
'prefer-object-spread': true,
'prefer-template': true,
'quotemark': [ true, 'single', 'avoid-escape' ],
'radix': true,
'relative-url-prefix': true,
'rxjs-angular-prefer-async-pipe': true,
'rxjs-no-compat': true,
'rxjs-no-exposed-subjects': true,
'rxjs-no-ignored-notifier': true,
'rxjs-no-ignored-observable': true,
'rxjs-no-ignored-replay-buffer': true,
'rxjs-no-index': true,
'rxjs-no-internal': true,
'rxjs-no-nested-subscribe': true,
'rxjs-no-sharereplay': [ true, { allowConfig: true } ],
'rxjs-no-subclass': true,
'rxjs-no-topromise': true,
'rxjs-no-unbound-methods': true,
'rxjs-no-unsafe-catch': true,
'rxjs-no-unsafe-first': true,
'rxjs-no-unsafe-switchmap': true,
'rxjs-no-unsafe-takeuntil': true,
'rxjs-prefer-observer': true,
'rxjs-suffix-subjects': true,
'rxjs-throw-error': true,
'semicolon': [ true, 'always' ],
'space-before-function-paren': true,
'static-this': true,
'strict-boolean-expressions': true,
'switch-default': true,
'template-accessibility-alt-text': true,
'template-accessibility-elements-content': true,
'template-accessibility-label-for': true,
'template-accessibility-tabindex-no-positive': true,
'template-accessibility-table-scope': true,
'template-accessibility-valid-aria': true,
'template-banana-in-box': true,
'template-click-events-have-key-events': true,
'template-conditional-complexity': true,
'template-cyclomatic-complexity': true,
'template-mouse-events-have-key-events': true,
'template-no-any': true,
'template-no-autofocus': true,
'template-no-call-expression': true,
'template-no-distracting-elements': true,
'template-no-negated-async': true,
'trailing-comma': [ true, { multiline: 'never', singleline: 'never' } ],
'triple-equals': true,
'type-literal-delimiter': true,
'typedef': [ true, 'call-signature' ],
'typedef-whitespace': [
true,
{
'call-signature': 'nospace',
'index-signature': 'nospace',
'parameter': 'nospace',
'property-declaration': 'nospace',
'variable-declaration': 'nospace'
},
{
'call-signature': 'onespace',
'index-signature': 'onespace',
'parameter': 'onespace',
'property-declaration': 'onespace',
'variable-declaration': 'onespace'
}
],
'unified-signatures': true,
'unnecessary-bind': true,
'unnecessary-constructor': true,
'unnecessary-else': true,
'use-component-view-encapsulation': true,
'use-injectable-provided-in': true,
'use-isnan': true,
'use-lifecycle-interface': true,
'use-pipe-decorator': true,
'use-pipe-transform-interface': true,
'variable-name': [ true, 'allow-leading-underscore', 'check-format' ],
'whitespace': [
true,
'check-branch',
'check-decl',
'check-module',
'check-operator',
'check-postbrace',
'check-preblock',
'check-rest-spread',
'check-separator',
'check-type',
'check-type-operator',
'check-typecast'
]
},
rulesDirectory: [
'codelyzer'
]
};