@enigmatry/eslint-config 18.1.0 → 19.0.1-preview.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +786 -807
  2. package/package.json +13 -20
package/index.js CHANGED
@@ -1,814 +1,793 @@
1
- 'use strict';
2
- module.exports = {
3
- "root": true,
4
- "env": {
5
- "browser": true,
6
- "jest": true,
7
- "node": true
1
+ import tseslint from "typescript-eslint";
2
+ import angular from "angular-eslint";
3
+ import pluginPromise from "eslint-plugin-promise";
4
+ import stylistic from "@stylistic/eslint-plugin";
5
+ import noSecrets from "eslint-plugin-no-secrets";
6
+ import importPlugin from "eslint-plugin-import";
7
+ import nounsanitized from "eslint-plugin-no-unsanitized";
8
+ import unusedImports from "eslint-plugin-unused-imports";
9
+ import arrowFunctions from "eslint-plugin-prefer-arrow-functions";
10
+
11
+ export default tseslint.config(
12
+ ...angular.configs.tsRecommended,
13
+ {
14
+ ignores: ["src/**/generated/", "src/polyfills.ts", "src/@enigmatry/**", "**/api-reference.ts"]
8
15
  },
9
- "overrides": [
10
- {
11
- "files": ["*.ts"],
12
- "plugins": ["@typescript-eslint", "@angular-eslint", "no-loops", "no-secrets",
13
- "import", "no-unsanitized", "promise", "unused-imports", "xss", "deprecation", "@stylistic"],
14
- "parser": "@typescript-eslint/parser",
16
+ {
17
+ "processor": angular.processInlineTemplates,
18
+ "files": ["src/**/*.ts"],
19
+ "languageOptions": {
20
+ "ecmaVersion": "latest",
21
+ "sourceType": "module",
22
+ "parser": tseslint.parser,
15
23
  "parserOptions": {
16
- "project": [
17
- "tsconfig.json",
18
- "e2e/tsconfig.json"
19
- ],
20
- "createDefaultProgram": true
24
+ "projectService": true,
25
+ "tsconfigRootDir": import.meta.dirname
21
26
  },
22
- "extends": [
23
- "plugin:@angular-eslint/recommended",
24
- "plugin:@angular-eslint/template/process-inline-templates"
25
- ],
26
- "rules": {
27
- "@angular-eslint/component-selector": [
28
- "error",
29
- {
30
- "prefix": [
31
- "app",
32
- "appg",
33
- "enigmatry",
34
- "entry"
35
- ],
36
- "style": "kebab-case",
37
- "type": "element"
38
- }
39
- ],
40
- "@angular-eslint/directive-selector": [
41
- "error",
42
- {
43
- "prefix": [
44
- "app",
45
- "appg",
46
- "enigmatry",
47
- "entry"
48
- ],
49
- "style": "camelCase",
50
- "type": "attribute"
51
- }
52
- ],
53
- "@stylistic/array-bracket-newline": "off",
54
- "@stylistic/array-bracket-spacing": [
55
- "error",
56
- "never"
57
- ],
58
- "@stylistic/array-element-newline": "off",
59
- "@stylistic/arrow-parens": [
60
- "error",
61
- "as-needed",
62
- {
63
- "requireForBlockBody": false
64
- }
65
- ],
66
- "@stylistic/arrow-spacing": "error",
67
- "@stylistic/block-spacing": "error",
68
- "@stylistic/brace-style": "off",
69
- "@stylistic/comma-dangle": "off",
70
- "@stylistic/comma-spacing": "off",
71
- "@stylistic/comma-style": "error",
72
- "@stylistic/computed-property-spacing": "error",
73
- "@stylistic/dot-location": [
74
- "error",
75
- "property"
76
- ],
77
- "@stylistic/eol-last": "off",
78
- "@stylistic/func-call-spacing": "off",
79
- "@stylistic/function-paren-newline": "off",
80
- "@stylistic/generator-star-spacing": "error",
81
- "@stylistic/implicit-arrow-linebreak": "off",
82
- "@stylistic/indent": [
83
- "off",
84
- "tab"
85
- ],
86
- "@stylistic/jsx-quotes": "error",
87
- "@stylistic/key-spacing": "error",
88
- "@stylistic/keyword-spacing": "off",
89
- "@stylistic/lines-around-comment": "off",
90
- "@stylistic/lines-between-class-members": [
91
- "off",
92
- "always",
93
- {
94
- "exceptAfterSingleLine": true
95
- }
96
- ],
97
- "@stylistic/max-len": [
98
- "error",
99
- {
100
- "code": 150,
101
- "ignoreComments": true
102
- }
103
- ],
104
- "@stylistic/max-statements-per-line": "error",
105
- "@stylistic/multiline-ternary": "off",
106
- "@stylistic/new-parens": "error",
107
- "@stylistic/newline-per-chained-call": [
108
- "error",
109
- {
110
- "ignoreChainWithDepth": 2
111
- }
112
- ],
113
- "@stylistic/no-confusing-arrow": "off",
114
- "@stylistic/no-extra-parens": [
115
- "error"
116
- ],
117
- "@stylistic/no-extra-semi": [
118
- "error"
119
- ],
120
- "@stylistic/no-floating-decimal": "off",
121
- "@stylistic/no-mixed-operators": "off",
122
- "@stylistic/no-mixed-spaces-and-tabs": "off",
123
- "@stylistic/no-multi-spaces": "error",
124
- "@stylistic/no-multiple-empty-lines": "error",
125
- "@stylistic/no-tabs": "off",
126
- "@stylistic/no-trailing-spaces": "error",
127
- "@stylistic/no-whitespace-before-property": "error",
128
- "@stylistic/nonblock-statement-body-position": [
129
- "error",
130
- "below"
131
- ],
132
- "@stylistic/object-curly-newline": "off",
133
- "@stylistic/object-curly-spacing": "off",
134
- "@stylistic/object-property-newline": [
135
- "error",
136
- {
137
- "allowAllPropertiesOnSameLine": true
138
- }
139
- ],
140
- "@stylistic/one-var-declaration-per-line": "off",
141
- "@stylistic/operator-linebreak": "off",
142
- "@stylistic/padded-blocks": [
143
- "error",
144
- "never"
145
- ],
146
- "@stylistic/padding-line-between-statements": "off",
147
- "@stylistic/quote-props": [
148
- "error",
149
- "as-needed"
150
- ],
151
- "@stylistic/quotes": "off",
152
- "@stylistic/rest-spread-spacing": [
153
- "error",
154
- "never"
155
- ],
156
- "@stylistic/semi": "off",
157
- "@stylistic/semi-spacing": "error",
158
- "@stylistic/semi-style": "off",
159
- "@stylistic/space-before-blocks": "error",
160
- "@stylistic/space-before-function-paren": "off",
161
- "@stylistic/space-in-parens": "error",
162
- "@stylistic/space-infix-ops": "off",
163
- "@stylistic/space-unary-ops": "error",
164
- "@stylistic/spaced-comment": "off",
165
- "@stylistic/switch-colon-spacing": "error",
166
- "@stylistic/template-curly-spacing": "error",
167
- "@stylistic/template-tag-spacing": "error",
168
- "@stylistic/member-delimiter-style": [
169
- "error"
170
- ],
171
- "@stylistic/type-annotation-spacing": [
172
- "error",
173
- {
174
- "after": true,
175
- "before": false,
176
- "overrides": {
177
- "arrow": {
178
- "after": true,
179
- "before": true
180
- },
181
- "colon": {
182
- "after": true,
183
- "before": false
184
- }
185
- }
186
- }
187
- ],
188
- "@stylistic/wrap-iife": "off",
189
- "@stylistic/wrap-regex": "off",
190
- "@stylistic/yield-star-spacing": "error",
191
- "@typescript-eslint/ban-ts-comments": "off",
192
- "@typescript-eslint/ban-types": "error",
193
- "@typescript-eslint/brace-style": [
194
- "error"
195
- ],
196
- "@typescript-eslint/comma-dangle": [
197
- "error",
198
- "never"
199
- ],
200
- "@typescript-eslint/comma-spacing": [
201
- "error"
202
- ],
203
- "@typescript-eslint/consistent-type-definitions": "error",
204
- "@typescript-eslint/consistent-type-exports": [
205
- "error",
206
- {
207
- "fixMixedExportsWithInlineTypeSpecifier": true
208
- }
209
- ],
210
- "@typescript-eslint/consistent-type-imports": [
211
- "off"
212
- ],
213
- "@typescript-eslint/default-param-last": [
214
- "error"
215
- ],
216
- "@typescript-eslint/dot-notation": [
217
- "error"
218
- ],
219
- "@typescript-eslint/func-call-spacing": [
220
- "error"
221
- ],
222
- "@typescript-eslint/indent": [
223
- "off",
224
- "tab"
225
- ],
226
- "@typescript-eslint/init-declarations": [
227
- "off"
228
- ],
229
- "@typescript-eslint/keyword-spacing": [
230
- "error"
231
- ],
232
- "@typescript-eslint/naming-convention": "off",
233
- "@typescript-eslint/no-array-constructor": [
234
- "error"
235
- ],
236
- "@typescript-eslint/no-dupe-class-members": [
237
- "error"
238
- ],
239
- "@typescript-eslint/no-empty-function": [
240
- "error"
241
- ],
242
- "@typescript-eslint/no-implied-eval": [
243
- "error"
244
- ],
245
- "@typescript-eslint/no-import-type-side-effects": "error",
246
- "@typescript-eslint/no-invalid-this": [
247
- "error"
248
- ],
249
- "@typescript-eslint/no-loop-func": [
250
- "error"
251
- ],
252
- "@typescript-eslint/no-loss-of-precision": [
253
- "error"
254
- ],
255
- "@typescript-eslint/no-magic-numbers": [
256
- "error",
257
- {
258
- "enforceConst": true,
259
- "ignore": [
260
- 0,
261
- 1
262
- ],
263
- "ignoreArrayIndexes": true,
264
- "ignoreClassFieldInitialValues": true,
265
- "ignoreDefaultValues": true,
266
- "ignoreEnums": true,
267
- "ignoreNumericLiteralTypes": true,
268
- "ignoreReadonlyClassProperties": true,
269
- "ignoreTypeIndexes": true
270
- }
271
- ],
272
- "@typescript-eslint/no-meaningless-void-operator": [
273
- "error",
274
- {
275
- "checkNever": false
276
- }
277
- ],
278
- "@typescript-eslint/no-mixed-enums": "error",
279
- "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
280
- "@typescript-eslint/no-non-null-assertion": [
281
- "error"
282
- ],
283
- "@typescript-eslint/no-redeclare": [
284
- "error"
285
- ],
286
- "@typescript-eslint/no-redundant-type-constituents": [
287
- "error"
288
- ],
289
- "@typescript-eslint/no-restricted-imports": [
290
- "off"
291
- ],
292
- "@typescript-eslint/no-shadow": [
293
- "error"
294
- ],
295
- "@typescript-eslint/no-throw-literal": [
296
- "error"
297
- ],
298
- "@typescript-eslint/no-unsafe-declaration-merging": [
299
- "error"
300
- ],
301
- "@typescript-eslint/no-unsafe-enum-comparison": "error",
302
- "@typescript-eslint/no-unsafe-return": "off",
303
- "@typescript-eslint/no-unused-expressions": [
304
- "error"
305
- ],
306
- "@typescript-eslint/no-unused-vars": [
307
- "error",
308
- {
309
- "argsIgnorePattern": "^_"
310
- }
311
- ],
312
- "@typescript-eslint/no-use-before-define": [
313
- "error"
314
- ],
315
- "@typescript-eslint/no-useless-constructor": [
316
- "error"
317
- ],
318
- "@typescript-eslint/object-curly-spacing": [
319
- "error",
320
- "always"
321
- ],
322
- "@typescript-eslint/parameter-properties": "off",
323
- "@typescript-eslint/prefer-optional-chain": "error",
324
- "@typescript-eslint/prefer-readonly": "off",
325
- "@typescript-eslint/prefer-readonly-parameter-types": "off",
326
- "@typescript-eslint/quotes": [
327
- "error",
328
- "single",
329
- {
330
- "allowTemplateLiterals": true
331
- }
332
- ],
333
- "@typescript-eslint/require-await": [
334
- "error"
335
- ],
336
- "@typescript-eslint/restrict-plus-operands": "error",
337
- "@typescript-eslint/return-await": [
338
- "error"
339
- ],
340
- "@typescript-eslint/semi": [
341
- "error"
342
- ],
343
- "@typescript-eslint/space-before-function-paren": [
344
- "error",
345
- "never"
346
- ],
347
- "@typescript-eslint/space-infix-ops": [
348
- "error"
349
- ],
350
- "array-callback-return": "error",
351
- "arrow-body-style": "off",
352
- "block-scoped-var": "error",
353
- "camelcase": "warn",
354
- "capitalized-comments": "off",
355
- "class-methods-use-this": "off",
356
- "complexity": "error",
357
- "consistent-return": "error",
358
- "consistent-this": "error",
359
- "constructor-super": "error",
360
- "curly": "error",
361
- "default-case": "warn",
362
- "default-case-last": "error",
363
- "default-param-last": "off",
364
- "deprecation/deprecation": "error",
365
- "dot-notation": "off",
366
- "eqeqeq": "error",
367
- "for-direction": "error",
368
- "func-name-matching": "off",
369
- "func-names": "error",
370
- "func-style": "error",
371
- "function-call-argument-newline": "off",
372
- "getter-return": "error",
373
- "grouped-accessor-pairs": "warn",
374
- "guard-for-in": "warn",
375
- "id-denylist": "off",
376
- "id-length": [
377
- "error",
378
- {
379
- "max": 50,
380
- "min": 1
381
- }
382
- ],
383
- "id-match": "off",
384
- "import/consistent-type-specifier-style": [
385
- "off"
386
- ],
387
- "import/default": [
388
- "error"
389
- ],
390
- "import/dynamic-import-chunkname": [
391
- "off"
392
- ],
393
- "import/export": [
394
- "error"
395
- ],
396
- "import/exports-last": [
397
- "off"
398
- ],
399
- "import/extensions": [
400
- "off",
401
- "never"
402
- ],
403
- "import/first": [
404
- "error"
405
- ],
406
- "import/max-dependencies": [
407
- "error",
408
- {
409
- "ignoreTypeImports": false,
410
- "max": 20
411
- }
412
- ],
413
- "import/named": [
414
- "off"
415
- ],
416
- "import/namespace": [
417
- "error"
418
- ],
419
- "import/newline-after-import": [
420
- "error"
421
- ],
422
- "import/no-absolute-path": [
423
- "off"
424
- ],
425
- "import/no-amd": [
426
- "error"
427
- ],
428
- "import/no-anonymous-default-export": [
429
- "error"
430
- ],
431
- "import/no-commonjs": [
432
- "error"
433
- ],
434
- "import/no-cycle": [
435
- "error"
436
- ],
437
- "import/no-default-export": [
438
- "off"
439
- ],
440
- "import/no-deprecated": [
441
- "error"
442
- ],
443
- "import/no-duplicates": [
444
- "error"
445
- ],
446
- "import/no-dynamic-require": [
447
- "off"
448
- ],
449
- "import/no-empty-named-blocks": [
450
- "error"
451
- ],
452
- "import/no-extraneous-dependencies": [
453
- "error"
454
- ],
455
- "import/no-import-module-exports": [
456
- "error"
457
- ],
458
- "import/no-internal-modules": [
459
- "off"
460
- ],
461
- "import/no-mutable-exports": [
462
- "error"
463
- ],
464
- "import/no-named-as-default": [
465
- "error"
466
- ],
467
- "import/no-named-as-default-member": [
468
- "error"
469
- ],
470
- "import/no-named-default": [
471
- "error"
472
- ],
473
- "import/no-named-export": [
474
- "off"
475
- ],
476
- "import/no-namespace": [
477
- "off"
478
- ],
479
- "import/no-nodejs-modules": [
480
- "off"
481
- ],
482
- "import/no-relative-packages": [
483
- "off"
484
- ],
485
- "import/no-relative-parent-imports": [
486
- "off"
487
- ],
488
- "import/no-restricted-paths": [
489
- "off"
490
- ],
491
- "import/no-self-import": [
492
- "error"
493
- ],
494
- "import/no-unassigned-import": [
495
- "off"
496
- ],
497
- "import/no-unresolved": [
498
- "off"
499
- ],
500
- "import/no-unused-modules": [
501
- "off"
502
- ],
503
- "import/no-useless-path-segments": [
504
- "error"
505
- ],
506
- "import/no-webpack-loader-syntax": [
507
- "error"
508
- ],
509
- "import/order": [
510
- "error",
511
- {
512
- "alphabetize": {
513
- "caseInsensitive": true,
514
- "order": "asc"
27
+ },
28
+ "plugins": {
29
+ "no-unsanitized": nounsanitized,
30
+ "@stylistic": stylistic,
31
+ "@typescript-eslint": tseslint.plugin,
32
+ "import": importPlugin,
33
+ "no-secrets": noSecrets,
34
+ "prefer-arrow-functions": arrowFunctions,
35
+ "promise": pluginPromise,
36
+ "unused-imports": unusedImports,
37
+ },
38
+ "rules": {
39
+ "@angular-eslint/component-selector": [
40
+ "error",
41
+ {
42
+ "prefix": [
43
+ "app",
44
+ "appg",
45
+ "enigmatry",
46
+ "entry"
47
+ ],
48
+ "style": "kebab-case",
49
+ "type": "element"
50
+ }
51
+ ],
52
+ "@angular-eslint/directive-selector": [
53
+ "error",
54
+ {
55
+ "prefix": [
56
+ "app",
57
+ "appg",
58
+ "enigmatry",
59
+ "entry"
60
+ ],
61
+ "style": "camelCase",
62
+ "type": "attribute"
63
+ }
64
+ ],
65
+ "@stylistic/array-bracket-newline": "off",
66
+ "@stylistic/array-bracket-spacing": [
67
+ "error",
68
+ "never"
69
+ ],
70
+ "@stylistic/array-element-newline": "off",
71
+ "@stylistic/arrow-parens": [
72
+ "error",
73
+ "as-needed",
74
+ {
75
+ "requireForBlockBody": false
76
+ }
77
+ ],
78
+ "@stylistic/arrow-spacing": "error",
79
+ "@stylistic/block-spacing": "error",
80
+ "@stylistic/brace-style": "error",
81
+ "@stylistic/comma-dangle": [
82
+ "error",
83
+ "never"
84
+ ],
85
+ "@stylistic/comma-spacing": "error",
86
+ "@stylistic/comma-style": "error",
87
+ "@stylistic/computed-property-spacing": "error",
88
+ "@stylistic/curly-newline": "off",
89
+ "@stylistic/dot-location": [
90
+ "error",
91
+ "property"
92
+ ],
93
+ "@stylistic/eol-last": "off",
94
+ "@stylistic/function-call-argument-newline": "off",
95
+ "@stylistic/function-call-spacing": "error",
96
+ "@stylistic/function-paren-newline": "off",
97
+ "@stylistic/generator-star-spacing": "error",
98
+ "@stylistic/implicit-arrow-linebreak": "off",
99
+ "@stylistic/indent": [
100
+ "off",
101
+ "tab"
102
+ ],
103
+ "@stylistic/indent-binary-ops": "off",
104
+ "@stylistic/jsx-quotes": "error",
105
+ "@stylistic/key-spacing": "error",
106
+ "@stylistic/keyword-spacing": "off",
107
+ "@stylistic/line-comment-position": "off",
108
+ "@stylistic/linebreak-style": "off",
109
+ "@stylistic/lines-around-comment": "off",
110
+ "@stylistic/lines-between-class-members": [
111
+ "off",
112
+ "always",
113
+ {
114
+ "exceptAfterSingleLine": true
115
+ }
116
+ ],
117
+ "@stylistic/max-len": [
118
+ "error",
119
+ {
120
+ "code": 150,
121
+ "ignoreComments": true
122
+ }
123
+ ],
124
+ "@stylistic/max-statements-per-line": "error",
125
+ "@stylistic/member-delimiter-style": [
126
+ "error"
127
+ ],
128
+ "@stylistic/multiline-comment-style": "off",
129
+ "@stylistic/multiline-ternary": "off",
130
+ "@stylistic/new-parens": "error",
131
+ "@stylistic/newline-per-chained-call": [
132
+ "error",
133
+ {
134
+ "ignoreChainWithDepth": 2
135
+ }
136
+ ],
137
+ "@stylistic/no-confusing-arrow": "off",
138
+ "@stylistic/no-extra-parens": [
139
+ "error"
140
+ ],
141
+ "@stylistic/no-extra-semi": [
142
+ "error"
143
+ ],
144
+ "@stylistic/no-floating-decimal": "off",
145
+ "@stylistic/no-mixed-operators": "off",
146
+ "@stylistic/no-mixed-spaces-and-tabs": "off",
147
+ "@stylistic/no-multi-spaces": "error",
148
+ "@stylistic/no-multiple-empty-lines": "error",
149
+ "@stylistic/no-tabs": "off",
150
+ "@stylistic/no-trailing-spaces": "error",
151
+ "@stylistic/no-whitespace-before-property": "error",
152
+ "@stylistic/nonblock-statement-body-position": [
153
+ "error",
154
+ "below"
155
+ ],
156
+ "@stylistic/object-curly-newline": "off",
157
+ "@stylistic/object-curly-spacing": [
158
+ "error",
159
+ "always"
160
+ ],
161
+ "@stylistic/object-property-newline": [
162
+ "error",
163
+ {
164
+ "allowAllPropertiesOnSameLine": true
165
+ }
166
+ ],
167
+ "@stylistic/one-var-declaration-per-line": "off",
168
+ "@stylistic/operator-linebreak": "off",
169
+ "@stylistic/padded-blocks": [
170
+ "error",
171
+ "never"
172
+ ],
173
+ "@stylistic/padding-line-between-statements": "off",
174
+ "@stylistic/quote-props": [
175
+ "error",
176
+ "as-needed"
177
+ ],
178
+ "@stylistic/quotes": [
179
+ "error",
180
+ "single",
181
+ {
182
+ "allowTemplateLiterals": true
183
+ }
184
+ ],
185
+ "@stylistic/rest-spread-spacing": [
186
+ "error",
187
+ "never"
188
+ ],
189
+ "@stylistic/semi": "error",
190
+ "@stylistic/semi-spacing": "error",
191
+ "@stylistic/semi-style": "off",
192
+ "@stylistic/space-before-blocks": "error",
193
+ "@stylistic/space-before-function-paren": [
194
+ "error",
195
+ "never"
196
+ ],
197
+ "@stylistic/space-in-parens": "error",
198
+ "@stylistic/space-infix-ops": "error",
199
+ "@stylistic/space-unary-ops": "error",
200
+ "@stylistic/spaced-comment": "off",
201
+ "@stylistic/switch-colon-spacing": "error",
202
+ "@stylistic/template-curly-spacing": "error",
203
+ "@stylistic/template-tag-spacing": "error",
204
+ "@stylistic/type-annotation-spacing": [
205
+ "error",
206
+ {
207
+ "after": true,
208
+ "before": false,
209
+ "overrides": {
210
+ "arrow": {
211
+ "after": true,
212
+ "before": true
213
+ },
214
+ "colon": {
215
+ "after": true,
216
+ "before": false
515
217
  }
516
218
  }
517
- ],
518
- "import/prefer-default-export": [
519
- "off"
520
- ],
521
- "import/unambiguous": [
522
- "error"
523
- ],
524
- "init-declarations": "off",
525
- "max-classes-per-file": [
526
- "error",
527
- 1
528
- ],
529
- "max-depth": [
530
- "error",
531
- 3
532
- ],
533
- "max-lines": [
534
- "error",
535
- 150
536
- ],
537
- "max-lines-per-function": [
538
- "error",
539
- 40
540
- ],
541
- "max-nested-callbacks": [
542
- "error",
543
- 3
544
- ],
545
- "max-params": [
546
- "error",
547
- 8
548
- ],
549
- "max-statements": [
550
- "error",
551
- 20
552
- ],
553
- "new-cap": "off",
554
- "no-alert": "error",
555
- "no-array-constructor": "off",
556
- "no-async-promise-executor": "error",
557
- "no-await-in-loop": "error",
558
- "no-bitwise": "error",
559
- "no-caller": "error",
560
- "no-case-declarations": "error",
561
- "no-class-assign": "error",
562
- "no-compare-neg-zero": "error",
563
- "no-cond-assign": "error",
564
- "no-console": "error",
565
- "no-const-assign": "error",
566
- "no-constant-condition": "error",
567
- "no-constructor-return": "error",
568
- "no-continue": "off",
569
- "no-control-regex": "error",
570
- "no-debugger": "error",
571
- "no-delete-var": "error",
572
- "no-div-regex": "error",
573
- "no-dupe-args": "error",
574
- "no-dupe-class-members": "off",
575
- "no-dupe-else-if": "error",
576
- "no-dupe-keys": "error",
577
- "no-duplicate-case": "error",
578
- "no-else-return": "error",
579
- "no-empty": "off",
580
- "no-empty-character-class": "error",
581
- "no-empty-function": "off",
582
- "no-empty-pattern": "warn",
583
- "no-empty-static-block": "off",
584
- "no-eq-null": "error",
585
- "no-eval": "error",
586
- "no-ex-assign": "error",
587
- "no-extend-native": "error",
588
- "no-extra-bind": "error",
589
- "no-extra-boolean-cast": "error",
590
- "no-extra-label": "error",
591
- "no-fallthrough": "error",
592
- "no-func-assign": "error",
593
- "no-global-assign": "error",
594
- "no-implicit-coercion": "off",
595
- "no-implicit-globals": "error",
596
- "no-implied-eval": "off",
597
- "no-import-assign": "error",
598
- "no-inner-declarations": "error",
599
- "no-invalid-regexp": "error",
600
- "no-invalid-this": "off",
601
- "no-irregular-whitespace": "error",
602
- "no-iterator": "error",
603
- "no-label-var": "error",
604
- "no-labels": "error",
605
- "no-lone-blocks": "error",
606
- "no-lonely-if": "error",
607
- "no-loop-func": "off",
608
- "no-loops/no-loops": 0,
609
- "no-loss-of-precision": "off",
610
- "no-magic-numbers": "off",
611
- "no-misleading-character-class": "error",
612
- "no-multi-assign": "error",
613
- "no-multi-str": "warn",
614
- "no-negated-condition": "error",
615
- "no-nested-ternary": "off",
616
- "no-new": "off",
617
- "no-new-func": "error",
618
- "no-new-native-nonconstructor": "error",
619
- "no-new-symbol": "error",
620
- "no-new-wrappers": "error",
621
- "no-nonoctal-decimal-escape": "error",
622
- "no-obj-calls": "error",
623
- "no-object-constructor": "error",
624
- "no-octal": "error",
625
- "no-octal-escape": "error",
626
- "no-param-reassign": "error",
627
- "no-plusplus": "off",
628
- "no-promise-executor-return": "error",
629
- "no-proto": "error",
630
- "no-prototype-builtins": "error",
631
- "no-redeclare": "off",
632
- "no-regex-spaces": "error",
633
- "no-restricted-exports": "off",
634
- "no-restricted-globals": "off",
635
- "no-restricted-imports": "off",
636
- "no-restricted-properties": "off",
637
- "no-restricted-syntax": "off",
638
- "no-return-assign": "off",
639
- "no-return-await": "off",
640
- "no-script-url": "error",
641
- "no-secrets/no-secrets": [
642
- "error",
643
- {
644
- "ignoreContent": [
645
- "__zone_symbol__UNPATCHED_EVENTS"
646
- ]
647
- }
648
- ],
649
- "no-self-assign": "error",
650
- "no-self-compare": "error",
651
- "no-sequences": "error",
652
- "no-setter-return": "error",
653
- "no-shadow": "off",
654
- "no-shadow-restricted-names": "error",
655
- "no-sparse-arrays": "error",
656
- "no-template-curly-in-string": "error",
657
- "no-ternary": "off",
658
- "no-this-before-super": "error",
659
- "no-throw-literal": "off",
660
- "no-undef": "off",
661
- "no-undef-init": "error",
662
- "no-undefined": "off",
663
- "no-underscore-dangle": "off",
664
- "no-unexpected-multiline": "error",
665
- "no-unmodified-loop-condition": "error",
666
- "no-unneeded-ternary": "error",
667
- "no-unreachable": "error",
668
- "no-unreachable-loop": "error",
669
- "no-unsafe-finally": "error",
670
- "no-unsafe-negation": "error",
671
- "no-unsafe-optional-chaining": "error",
672
- "no-unsanitized/method": "error",
673
- "no-unsanitized/property": "error",
674
- "no-unused-expressions": "off",
675
- "no-unused-labels": "error",
676
- "no-unused-private-class-members": "error",
677
- "no-unused-vars": "off",
678
- "no-use-before-define": "off",
679
- "no-useless-backreference": "error",
680
- "no-useless-call": "error",
681
- "no-useless-catch": "error",
682
- "no-useless-computed-key": "error",
683
- "no-useless-concat": "error",
684
- "no-useless-constructor": "off",
685
- "no-useless-empty-export": "off",
686
- "no-useless-escape": "error",
687
- "no-useless-rename": "error",
688
- "no-useless-return": "error",
689
- "no-var": "error",
690
- "no-void": "error",
691
- "no-warning-comments": "warn",
692
- "no-with": "error",
693
- "object-shorthand": "error",
694
- "one-var": "off",
695
- "operator-assignment": "error",
696
- "prefer-arrow-callback": "error",
697
- "prefer-const": "error",
698
- "prefer-destructuring": "off",
699
- "prefer-exponentiation-operator": "off",
700
- "prefer-named-capture-group": "off",
701
- "prefer-numeric-literals": "warn",
702
- "prefer-object-has-own": "off",
703
- "prefer-object-spread": "off",
704
- "prefer-promise-reject-errors": "off",
705
- "prefer-regex-literals": "off",
706
- "prefer-rest-params": "error",
707
- "prefer-spread": "error",
708
- "prefer-template": "error",
709
- "promise/always-return": [
710
- "error",
711
- {
712
- "ignoreLastCallback": true
713
- }
714
- ],
715
- "promise/avoid-new": "warn",
716
- "promise/catch-or-return": [
717
- "error",
718
- {
719
- "allowThen": true,
720
- "terminationMethod": [
721
- "catch",
722
- "finally"
723
- ]
724
- }
725
- ],
726
- "promise/no-callback-in-promise": "off",
727
- "promise/no-multiple-resolved": "error",
728
- "promise/no-native": "off",
729
- "promise/no-nesting": "off",
730
- "promise/no-new-statics": "error",
731
- "promise/no-promise-in-callback": "off",
732
- "promise/no-return-in-finally": "warn",
733
- "promise/no-return-wrap": [
734
- "error",
735
- {
736
- "allowReject": true
737
- }
738
- ],
739
- "promise/param-names": "error",
740
- "promise/valid-params": "warn",
741
- "radix": "error",
742
- "require-atomic-updates": "error",
743
- "require-await": "off",
744
- "require-unicode-regexp": "warn",
745
- "require-yield": "error",
746
- "sort-imports": "off",
747
- "sort-keys": "off",
748
- "sort-vars": "off",
749
- "strict": "off",
750
- "symbol-description": "error",
751
- "unicode-bom": "off",
752
- "unused-imports/no-unused-imports": "error",
753
- "unused-imports/no-unused-vars": [
754
- "warn",
755
- {
756
- "args": "after-used",
757
- "argsIgnorePattern": "^_",
758
- "vars": "all",
759
- "varsIgnorePattern": "^_"
760
- }
761
- ],
762
- "use-isnan": "error",
763
- "valid-typeof": "error",
764
- "vars-on-top": "off",
765
- "xss/no-location-href-assign": [
766
- 2,
767
- {
768
- "escapeFunc": "escapeHref"
769
- }
770
- ],
771
- "xss/no-mixed-html": [
772
- 2,
773
- {
774
- "functions": {
775
- "$": {
776
- "htmlInput": true,
777
- "safe": [
778
- "document",
779
- "this"
780
- ]
781
- },
782
- ".html": {
783
- "htmlInput": true,
784
- "htmlOutput": true
785
- },
786
- ".join": {
787
- "passthrough": {
788
- "args": true,
789
- "obj": true
790
- }
791
- }
792
- },
793
- "htmlFunctionRules": [
794
- ".asHtml/i",
795
- "toHtml"
796
- ],
797
- "htmlVariableRules": [
798
- "AsHtml",
799
- "HtmlEncoded/i",
800
- "^html$"
801
- ]
219
+ }
220
+ ],
221
+ "@stylistic/type-generic-spacing": "error",
222
+ "@stylistic/type-named-tuple-spacing": "error",
223
+ "@stylistic/wrap-iife": "off",
224
+ "@stylistic/wrap-regex": "off",
225
+ "@stylistic/yield-star-spacing": "error",
226
+ "@typescript-eslint/ban-ts-comments": "off",
227
+ "@typescript-eslint/consistent-type-definitions": "error",
228
+ "@typescript-eslint/consistent-type-exports": [
229
+ "error",
230
+ {
231
+ "fixMixedExportsWithInlineTypeSpecifier": true
232
+ }
233
+ ],
234
+ "@typescript-eslint/consistent-type-imports": [
235
+ "off"
236
+ ],
237
+ "@typescript-eslint/default-param-last": [
238
+ "error"
239
+ ],
240
+ "@typescript-eslint/dot-notation": [
241
+ "error"
242
+ ],
243
+ "@typescript-eslint/indent": [
244
+ "off",
245
+ "tab"
246
+ ],
247
+ "@typescript-eslint/init-declarations": [
248
+ "off"
249
+ ],
250
+ "@typescript-eslint/naming-convention": "off",
251
+ "@typescript-eslint/no-array-constructor": [
252
+ "error"
253
+ ],
254
+ "@typescript-eslint/no-array-delete": "error",
255
+ "@typescript-eslint/no-deprecated": "error",
256
+ "@typescript-eslint/no-dupe-class-members": [
257
+ "error"
258
+ ],
259
+ "@typescript-eslint/no-empty-function": [
260
+ "error"
261
+ ],
262
+ "@typescript-eslint/no-empty-object-type": "off",
263
+ "@typescript-eslint/no-floating-promises": "error",
264
+ "@typescript-eslint/no-implied-eval": [
265
+ "error"
266
+ ],
267
+ "@typescript-eslint/no-import-type-side-effects": "error",
268
+ "@typescript-eslint/no-invalid-this": [
269
+ "error"
270
+ ],
271
+ "@typescript-eslint/no-loop-func": [
272
+ "error"
273
+ ],
274
+ "@typescript-eslint/no-loss-of-precision": [
275
+ "error"
276
+ ],
277
+ "@typescript-eslint/no-magic-numbers": [
278
+ "error",
279
+ {
280
+ "enforceConst": true,
281
+ "ignore": [
282
+ 0,
283
+ 1
284
+ ],
285
+ "ignoreArrayIndexes": true,
286
+ "ignoreClassFieldInitialValues": true,
287
+ "ignoreDefaultValues": true,
288
+ "ignoreEnums": true,
289
+ "ignoreNumericLiteralTypes": true,
290
+ "ignoreReadonlyClassProperties": true,
291
+ "ignoreTypeIndexes": true
292
+ }
293
+ ],
294
+ "@typescript-eslint/no-meaningless-void-operator": [
295
+ "error",
296
+ {
297
+ "checkNever": false
298
+ }
299
+ ],
300
+ "@typescript-eslint/no-mixed-enums": "error",
301
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
302
+ "@typescript-eslint/no-non-null-assertion": "error",
303
+ "@typescript-eslint/no-redeclare": [
304
+ "error"
305
+ ],
306
+ "@typescript-eslint/no-redundant-type-constituents": [
307
+ "error"
308
+ ],
309
+ "@typescript-eslint/no-restricted-imports": [
310
+ "off"
311
+ ],
312
+ "@typescript-eslint/no-restricted-types": "error",
313
+ "@typescript-eslint/no-shadow": [
314
+ "error"
315
+ ],
316
+ "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
317
+ "@typescript-eslint/no-unnecessary-template-expression": "error",
318
+ "@typescript-eslint/no-unsafe-declaration-merging": [
319
+ "error"
320
+ ],
321
+ "@typescript-eslint/no-unsafe-enum-comparison": "error",
322
+ "@typescript-eslint/no-unsafe-function-type": "error",
323
+ "@typescript-eslint/no-unsafe-return": "off",
324
+ "@typescript-eslint/no-unsafe-type-assertion": "off",
325
+ "@typescript-eslint/no-unsafe-unary-minus": "error",
326
+ "@typescript-eslint/no-unused-expressions": [
327
+ "error"
328
+ ],
329
+ "@typescript-eslint/no-unused-vars": [
330
+ "error",
331
+ {
332
+ "argsIgnorePattern": "^_"
333
+ }
334
+ ],
335
+ "@typescript-eslint/no-use-before-define": [
336
+ "error"
337
+ ],
338
+ "@typescript-eslint/no-useless-constructor": [
339
+ "error"
340
+ ],
341
+ "@typescript-eslint/no-wrapper-object-types": "error",
342
+ "@typescript-eslint/parameter-properties": "off",
343
+ "@typescript-eslint/prefer-optional-chain": "error",
344
+ "@typescript-eslint/prefer-promise-reject-errors": "off",
345
+ "@typescript-eslint/prefer-readonly": "off",
346
+ "@typescript-eslint/prefer-readonly-parameter-types": "off",
347
+ "@typescript-eslint/related-getter-setter-pairs": "error",
348
+ "@typescript-eslint/require-await": [
349
+ "error"
350
+ ],
351
+ "@typescript-eslint/restrict-plus-operands": "error",
352
+ "@typescript-eslint/return-await": [
353
+ "error"
354
+ ],
355
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
356
+ "array-callback-return": "error",
357
+ "arrow-body-style": "off",
358
+ "block-scoped-var": "error",
359
+ "camelcase": "warn",
360
+ "capitalized-comments": "off",
361
+ "class-methods-use-this": "off",
362
+ "complexity": "error",
363
+ "consistent-return": "error",
364
+ "consistent-this": "error",
365
+ "constructor-super": "error",
366
+ "curly": "error",
367
+ "default-case": "warn",
368
+ "default-case-last": "error",
369
+ "default-param-last": "off",
370
+ "dot-notation": "off",
371
+ "eqeqeq": "error",
372
+ "for-direction": "error",
373
+ "func-name-matching": "off",
374
+ "func-names": "error",
375
+ "func-style": "error",
376
+ "function-call-argument-newline": "off",
377
+ "getter-return": "error",
378
+ "grouped-accessor-pairs": "warn",
379
+ "guard-for-in": "warn",
380
+ "id-denylist": "off",
381
+ "id-length": [
382
+ "error",
383
+ {
384
+ "max": 50,
385
+ "min": 1
386
+ }
387
+ ],
388
+ "id-match": "off",
389
+ "import/consistent-type-specifier-style": [
390
+ "off"
391
+ ],
392
+ "import/default": [
393
+ "error"
394
+ ],
395
+ "import/dynamic-import-chunkname": [
396
+ "off"
397
+ ],
398
+ "import/export": [
399
+ "error"
400
+ ],
401
+ "import/exports-last": [
402
+ "off"
403
+ ],
404
+ "import/extensions": [
405
+ "off",
406
+ "never"
407
+ ],
408
+ "import/first": [
409
+ "error"
410
+ ],
411
+ "import/max-dependencies": [
412
+ "error",
413
+ {
414
+ "ignoreTypeImports": false,
415
+ "max": 20
416
+ }
417
+ ],
418
+ "import/named": [
419
+ "off"
420
+ ],
421
+ "import/namespace": [
422
+ "error"
423
+ ],
424
+ "import/newline-after-import": [
425
+ "error"
426
+ ],
427
+ "import/no-absolute-path": [
428
+ "off"
429
+ ],
430
+ "import/no-amd": [
431
+ "error"
432
+ ],
433
+ "import/no-anonymous-default-export": [
434
+ "error"
435
+ ],
436
+ "import/no-commonjs": [
437
+ "error"
438
+ ],
439
+ "import/no-cycle": [
440
+ "error"
441
+ ],
442
+ "import/no-default-export": [
443
+ "off"
444
+ ],
445
+ "import/no-deprecated": [
446
+ "error"
447
+ ],
448
+ "import/no-duplicates": [
449
+ "error"
450
+ ],
451
+ "import/no-dynamic-require": [
452
+ "off"
453
+ ],
454
+ "import/no-empty-named-blocks": [
455
+ "error"
456
+ ],
457
+ "import/no-extraneous-dependencies": [
458
+ "error"
459
+ ],
460
+ "import/no-import-module-exports": [
461
+ "error"
462
+ ],
463
+ "import/no-internal-modules": [
464
+ "off"
465
+ ],
466
+ "import/no-mutable-exports": [
467
+ "error"
468
+ ],
469
+ "import/no-named-as-default": [
470
+ "error"
471
+ ],
472
+ "import/no-named-as-default-member": [
473
+ "error"
474
+ ],
475
+ "import/no-named-default": [
476
+ "error"
477
+ ],
478
+ "import/no-named-export": [
479
+ "off"
480
+ ],
481
+ "import/no-namespace": [
482
+ "off"
483
+ ],
484
+ "import/no-nodejs-modules": [
485
+ "off"
486
+ ],
487
+ "import/no-relative-packages": [
488
+ "off"
489
+ ],
490
+ "import/no-relative-parent-imports": [
491
+ "off"
492
+ ],
493
+ "import/no-restricted-paths": [
494
+ "off"
495
+ ],
496
+ "import/no-self-import": [
497
+ "error"
498
+ ],
499
+ "import/no-unassigned-import": [
500
+ "off"
501
+ ],
502
+ "import/no-unresolved": [
503
+ "off"
504
+ ],
505
+ "import/no-unused-modules": [
506
+ "off"
507
+ ],
508
+ "import/no-useless-path-segments": [
509
+ "error"
510
+ ],
511
+ "import/no-webpack-loader-syntax": [
512
+ "error"
513
+ ],
514
+ "import/order": [
515
+ "error",
516
+ {
517
+ "alphabetize": {
518
+ "caseInsensitive": true,
519
+ "order": "asc"
802
520
  }
803
- ],
804
- "yoda": "warn"
805
- }
806
- },
807
- {
808
- "files": ["*.html"],
809
- "extends": ["plugin:@angular-eslint/template/recommended"],
810
- "parser": "@angular-eslint/template-parser",
811
- "plugins": ["@angular-eslint/template"]
521
+ }
522
+ ],
523
+ "import/prefer-default-export": [
524
+ "off"
525
+ ],
526
+ "import/unambiguous": [
527
+ "error"
528
+ ],
529
+ "init-declarations": "off",
530
+ "max-classes-per-file": [
531
+ "error",
532
+ 1
533
+ ],
534
+ "max-depth": [
535
+ "error",
536
+ 3
537
+ ],
538
+ "max-lines": [
539
+ "error",
540
+ 150
541
+ ],
542
+ "max-lines-per-function": [
543
+ "error",
544
+ 40
545
+ ],
546
+ "max-nested-callbacks": [
547
+ "error",
548
+ 3
549
+ ],
550
+ "max-params": [
551
+ "error",
552
+ 8
553
+ ],
554
+ "max-statements": [
555
+ "error",
556
+ 20
557
+ ],
558
+ "new-cap": "off",
559
+ "no-alert": "error",
560
+ "no-array-constructor": "off",
561
+ "no-async-promise-executor": "error",
562
+ "no-await-in-loop": "error",
563
+ "no-bitwise": "error",
564
+ "no-caller": "error",
565
+ "no-case-declarations": "error",
566
+ "no-class-assign": "error",
567
+ "no-compare-neg-zero": "error",
568
+ "no-cond-assign": "error",
569
+ "no-console": "error",
570
+ "no-const-assign": "error",
571
+ "no-constant-condition": "error",
572
+ "no-constructor-return": "error",
573
+ "no-continue": "off",
574
+ "no-control-regex": "error",
575
+ "no-debugger": "error",
576
+ "no-delete-var": "error",
577
+ "no-div-regex": "error",
578
+ "no-dupe-args": "error",
579
+ "no-dupe-class-members": "off",
580
+ "no-dupe-else-if": "error",
581
+ "no-dupe-keys": "error",
582
+ "no-duplicate-case": "error",
583
+ "no-else-return": "error",
584
+ "no-empty": "off",
585
+ "no-empty-character-class": "error",
586
+ "no-empty-function": "off",
587
+ "no-empty-pattern": "warn",
588
+ "no-empty-static-block": "off",
589
+ "no-eq-null": "error",
590
+ "no-eval": "error",
591
+ "no-ex-assign": "error",
592
+ "no-extend-native": "error",
593
+ "no-extra-bind": "error",
594
+ "no-extra-boolean-cast": [
595
+ "error",
596
+ {
597
+ "enforceForInnerExpressions": true
598
+ }
599
+ ],
600
+ "no-extra-label": "error",
601
+ "no-fallthrough": "error",
602
+ "no-func-assign": "error",
603
+ "no-global-assign": "error",
604
+ "no-implicit-coercion": "off",
605
+ "no-implicit-globals": "error",
606
+ "no-implied-eval": "off",
607
+ "no-import-assign": "error",
608
+ "no-inner-declarations": "error",
609
+ "no-invalid-regexp": "error",
610
+ "no-invalid-this": "off",
611
+ "no-irregular-whitespace": "error",
612
+ "no-iterator": "error",
613
+ "no-label-var": "error",
614
+ "no-labels": "error",
615
+ "no-lone-blocks": "error",
616
+ "no-lonely-if": "error",
617
+ "no-loop-func": "off",
618
+ "no-loss-of-precision": "off",
619
+ "no-magic-numbers": "off",
620
+ "no-misleading-character-class": "error",
621
+ "no-multi-assign": "error",
622
+ "no-multi-str": "warn",
623
+ "no-negated-condition": "error",
624
+ "no-nested-ternary": "off",
625
+ "no-new": "off",
626
+ "no-new-func": "error",
627
+ "no-new-native-nonconstructor": "error",
628
+ "no-new-wrappers": "error",
629
+ "no-nonoctal-decimal-escape": "error",
630
+ "no-obj-calls": "error",
631
+ "no-object-constructor": "error",
632
+ "no-octal": "error",
633
+ "no-octal-escape": "error",
634
+ "no-param-reassign": "error",
635
+ "no-plusplus": "off",
636
+ "no-promise-executor-return": "error",
637
+ "no-proto": "error",
638
+ "no-prototype-builtins": "error",
639
+ "no-redeclare": "off",
640
+ "no-regex-spaces": "error",
641
+ "no-restricted-exports": "off",
642
+ "no-restricted-globals": "off",
643
+ "no-restricted-imports": "off",
644
+ "no-restricted-properties": "off",
645
+ "no-restricted-syntax": "off",
646
+ "no-return-assign": "off",
647
+ "no-return-await": "off",
648
+ "no-script-url": "error",
649
+ "no-secrets/no-secrets": [
650
+ "error",
651
+ {
652
+ "ignoreContent": [
653
+ "__zone_symbol__UNPATCHED_EVENTS"
654
+ ]
655
+ }
656
+ ],
657
+ "no-self-assign": "error",
658
+ "no-self-compare": "error",
659
+ "no-sequences": "error",
660
+ "no-setter-return": "error",
661
+ "no-shadow": "off",
662
+ "no-shadow-restricted-names": "error",
663
+ "no-sparse-arrays": "error",
664
+ "no-template-curly-in-string": "error",
665
+ "no-ternary": "off",
666
+ "no-this-before-super": "error",
667
+ "no-throw-literal": "off",
668
+ "no-undef": "off",
669
+ "no-undef-init": "error",
670
+ "no-undefined": "off",
671
+ "no-underscore-dangle": "off",
672
+ "no-unexpected-multiline": "error",
673
+ "no-unmodified-loop-condition": "error",
674
+ "no-unneeded-ternary": "error",
675
+ "no-unreachable": "error",
676
+ "no-unreachable-loop": "error",
677
+ "no-unsafe-finally": "error",
678
+ "no-unsafe-negation": "error",
679
+ "no-unsafe-optional-chaining": "error",
680
+ "no-unsanitized/method": "error",
681
+ "no-unsanitized/property": "error",
682
+ "no-unused-expressions": "off",
683
+ "no-unused-labels": "error",
684
+ "no-unused-private-class-members": "error",
685
+ "no-unused-vars": "off",
686
+ "no-use-before-define": "off",
687
+ "no-useless-assignment": "error",
688
+ "no-useless-backreference": "error",
689
+ "no-useless-call": "error",
690
+ "no-useless-catch": "error",
691
+ "no-useless-computed-key": "error",
692
+ "no-useless-concat": "error",
693
+ "no-useless-constructor": "off",
694
+ "no-useless-empty-export": "off",
695
+ "no-useless-escape": "error",
696
+ "no-useless-rename": "error",
697
+ "no-useless-return": "error",
698
+ "no-var": "error",
699
+ "no-void": "error",
700
+ "no-warning-comments": "warn",
701
+ "no-with": "error",
702
+ "object-shorthand": "error",
703
+ "one-var": "off",
704
+ "operator-assignment": "error",
705
+ "prefer-arrow-callback": "error",
706
+ "prefer-arrow-functions/prefer-arrow-functions": [
707
+ "warn",
708
+ {
709
+ "allowNamedFunctions": false,
710
+ "classPropertiesAllowed": true,
711
+ "disallowPrototype": true,
712
+ "returnStyle": "implicit",
713
+ "singleReturnOnly": false
714
+ }
715
+ ],
716
+ "prefer-const": "error",
717
+ "prefer-destructuring": "off",
718
+ "prefer-exponentiation-operator": "off",
719
+ "prefer-named-capture-group": "off",
720
+ "prefer-numeric-literals": "warn",
721
+ "prefer-object-has-own": "off",
722
+ "prefer-object-spread": "off",
723
+ "prefer-promise-reject-errors": "off",
724
+ "prefer-regex-literals": "off",
725
+ "prefer-rest-params": "error",
726
+ "prefer-spread": "error",
727
+ "prefer-template": "error",
728
+ "promise/always-return": "off",
729
+ "promise/avoid-new": "warn",
730
+ "promise/catch-or-return": [
731
+ "error",
732
+ {
733
+ "allowThen": true,
734
+ "terminationMethod": [
735
+ "catch",
736
+ "finally"
737
+ ]
738
+ }
739
+ ],
740
+ "promise/no-callback-in-promise": "off",
741
+ "promise/no-multiple-resolved": "error",
742
+ "promise/no-native": "off",
743
+ "promise/no-nesting": "off",
744
+ "promise/no-new-statics": "error",
745
+ "promise/no-promise-in-callback": "off",
746
+ "promise/no-return-in-finally": "warn",
747
+ "promise/no-return-wrap": [
748
+ "error",
749
+ {
750
+ "allowReject": true
751
+ }
752
+ ],
753
+ "promise/param-names": "error",
754
+ "promise/prefer-catch": "warn",
755
+ "promise/valid-params": "warn",
756
+ "radix": "error",
757
+ "require-atomic-updates": "error",
758
+ "require-await": "off",
759
+ "require-unicode-regexp": "warn",
760
+ "require-yield": "error",
761
+ "sort-imports": "off",
762
+ "sort-keys": "off",
763
+ "sort-vars": "off",
764
+ "strict": "off",
765
+ "symbol-description": "error",
766
+ "unicode-bom": "off",
767
+ "unused-imports/no-unused-imports": "error",
768
+ "unused-imports/no-unused-vars": [
769
+ "warn",
770
+ {
771
+ "args": "after-used",
772
+ "argsIgnorePattern": "^_",
773
+ "vars": "all",
774
+ "varsIgnorePattern": "^_"
775
+ }
776
+ ],
777
+ "use-isnan": "error",
778
+ "valid-typeof": "error",
779
+ "vars-on-top": "off",
780
+ "yoda": "warn"
781
+ }
782
+ },
783
+ {
784
+ "files": ["*.html"],
785
+ "extends": [
786
+ ...angular.configs.templateRecommended,
787
+ ...angular.configs.templateAccessibility,
788
+ ],
789
+ rules: {
790
+ "@angular-eslint/template/no-negated-async": "off"
812
791
  }
813
- ]
814
- };
792
+ }
793
+ );