forked from help-me-mom/ng-mocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
252 lines (236 loc) · 6.97 KB
/
.eslintrc.yml
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
251
252
root: true
plugins:
- '@typescript-eslint'
- 'json'
- 'unused-imports'
- 'prefer-arrow'
- 'unicorn'
- 'es-roikoren'
settings:
import/resolver:
typescript:
project:
- ./tsconfig.json
- ./tests-e2e/tsconfig.json
- ./e2e/a5es5/tsconfig.json
- ./e2e/a5es2015/tsconfig.json
- ./e2e/a6/tsconfig.json
- ./e2e/a7/tsconfig.json
- ./e2e/a8/tsconfig.json
- ./e2e/a9/tsconfig.json
- ./e2e/a10/tsconfig.json
- ./e2e/a11/tsconfig.json
- ./e2e/a12/tsconfig.json
- ./e2e/a13/tsconfig.json
- ./e2e/a14/tsconfig.json
- ./e2e/a15/tsconfig.json
- ./e2e/a16/tsconfig.json
- ./e2e/a17/tsconfig.json
- ./e2e/jasmine/tsconfig.json
- ./e2e/jest/tsconfig.json
- ./e2e/min/tsconfig.json
- ./e2e/nx/tsconfig.json
- ./e2e/nx/tsconfig.spec.json
es-roikoren:
aggressive: true
overrides:
- files:
- '*.ts'
- '*.js'
parser: '@typescript-eslint/parser'
parserOptions:
project:
- ./tsconfig.json
- ./tests-e2e/tsconfig.json
- ./e2e/a5es5/tsconfig.json
- ./e2e/a5es2015/tsconfig.json
- ./e2e/a6/tsconfig.json
- ./e2e/a7/tsconfig.json
- ./e2e/a8/tsconfig.json
- ./e2e/a9/tsconfig.json
- ./e2e/a10/tsconfig.json
- ./e2e/a11/tsconfig.json
- ./e2e/a12/tsconfig.json
- ./e2e/a13/tsconfig.json
- ./e2e/a14/tsconfig.json
- ./e2e/a15/tsconfig.json
- ./e2e/a16/tsconfig.json
- ./e2e/a17/tsconfig.json
- ./e2e/jasmine/tsconfig.json
- ./e2e/jest/tsconfig.json
- ./e2e/min/tsconfig.json
- ./e2e/nx/tsconfig.json
- ./e2e/nx/tsconfig.spec.json
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@angular-eslint/recommended'
- 'plugin:@angular-eslint/template/process-inline-templates'
- 'plugin:unicorn/recommended'
- 'plugin:import/recommended'
- 'plugin:import/typescript'
- 'plugin:prettier/recommended'
rules:
arrow-parens: off
arrow-body-style: off
spaced-comment:
- error
- always
complexity:
- error
- 50
unicorn/filename-case:
- error
- case: kebabCase
max-lines:
- error
- 500
max-lines-per-function:
- error
- 150
'@angular-eslint/no-input-rename': off
'@angular-eslint/no-inputs-metadata-property': off
'@angular-eslint/no-output-rename': off
'@angular-eslint/no-outputs-metadata-property': off
'@typescript-eslint/no-empty-interface': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-namespace': off
'@typescript-eslint/no-this-alias': off
'@typescript-eslint/no-unsafe-declaration-merging': off
'@typescript-eslint/no-unused-vars': error
unicorn/expiring-todo-comments: off
unicorn/no-array-callback-reference: off
unicorn/no-array-method-this-argument: off
unicorn/no-for-loop: off
unicorn/no-null: off
unicorn/no-this-assignment: off
unicorn/no-typeof-undefined: off
unicorn/no-unnecessary-polyfills: off
unicorn/no-useless-undefined: off
unicorn/prefer-array-flat: off
unicorn/prefer-at: off
unicorn/prefer-event-target: off
unicorn/prefer-includes: off
unicorn/prefer-module: off
unicorn/prefer-set-has: off
unicorn/prefer-spread: off
unicorn/prefer-string-replace-all: off
unicorn/prefer-switch: off
unicorn/prefer-top-level-await: off
unicorn/prefer-type-error: off
unicorn/prevent-abbreviations: off
es-roikoren/no-array-from: error
es-roikoren/no-array-isarray: off
es-roikoren/no-array-of: error
es-roikoren/no-array-prototype-copywithin: error
es-roikoren/no-array-prototype-entries: error
es-roikoren/no-array-prototype-every: error
es-roikoren/no-array-prototype-fill: off
es-roikoren/no-array-prototype-filter: off
es-roikoren/no-array-prototype-find: error
es-roikoren/no-array-prototype-findindex: error
es-roikoren/no-array-prototype-flat: error
es-roikoren/no-array-prototype-foreach: error
es-roikoren/no-array-prototype-includes: error
es-roikoren/no-array-prototype-indexof: off
es-roikoren/no-array-prototype-keys: error
es-roikoren/no-array-prototype-lastindexof: error
es-roikoren/no-array-prototype-map: off
es-roikoren/no-array-prototype-reduce: error
es-roikoren/no-array-prototype-reduceright: error
es-roikoren/no-array-prototype-some: off
es-roikoren/no-array-prototype-values: error
es-roikoren/no-array-string-prototype-at: error
no-alert: error
no-console:
- error
- allow:
- error
- warn
no-debugger: error
no-restricted-globals:
- error
- fit
- fdescribe
- xit
- xdescribe
semi:
- error
- always
quotes:
- error
- single
- avoidEscape: true
allowTemplateLiterals: true
import/order:
- error
- newlines-between: always
alphabetize:
order: asc
caseInsensitive: true
groups:
- builtin
- external
- internal
- index
- parent
- sibling
pathGroups:
- pattern: '@angular/**'
group: external
unused-imports/no-unused-imports: error
prefer-arrow/prefer-arrow-functions:
- error
- allowStandaloneDeclarations: true
- files:
- '*.spec.ts'
rules:
max-lines: off
max-lines-per-function: off
unicorn/consistent-function-scoping: off
unicorn/prefer-logical-operator-over-ternary: off
'@typescript-eslint/no-empty-function': off
- files:
- '*.js'
parser: 'espree'
env:
node: true
rules:
unicorn/prefer-module: off
- files:
- 'decorate-angular-cli.js'
- 'jest.config.js'
- 'jest.preset.js'
- 'karma.conf.js'
- 'webpack.config.js'
rules:
'@typescript-eslint/no-var-requires': off
'prefer-arrow/prefer-arrow-functions': off
- files:
- '*.html'
parser: '@angular-eslint/template-parser'
extends:
- 'plugin:@angular-eslint/template/recommended'
- files:
- '*.json'
extends:
- 'plugin:json/recommended'
- 'plugin:prettier/recommended'
- files:
- '*.md'
extends:
- 'plugin:mdx/recommended'
- 'plugin:prettier/recommended'
- files:
- 'tsconfig.json'
- 'tsconfig.*.json'
extends:
- 'plugin:json/recommended-with-comments'
- 'plugin:prettier/recommended'
- files:
- '*.yaml'
- '*.yml'
parser: 'yaml-eslint-parser'
extends:
- 'plugin:yml/prettier'
- 'plugin:prettier/recommended'