@enigmatry/eslint-config 17.0.0-preview.4 → 17.0.0-preview.5.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 (3) hide show
  1. package/README.md +25 -25
  2. package/index.js +814 -814
  3. package/package.json +40 -58
package/index.js CHANGED
@@ -1,814 +1,814 @@
1
- 'use strict';
2
- module.exports = {
3
- "root": true,
4
- "env": {
5
- "browser": true,
6
- "jest": true,
7
- "node": true
8
- },
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",
15
- "parserOptions": {
16
- "project": [
17
- "tsconfig.json",
18
- "e2e/tsconfig.json"
19
- ],
20
- "createDefaultProgram": true
21
- },
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"
515
- }
516
- }
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
- ]
802
- }
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"]
812
- }
813
- ]
814
- };
1
+ 'use strict';
2
+ module.exports = {
3
+ "root": true,
4
+ "env": {
5
+ "browser": true,
6
+ "jest": true,
7
+ "node": true
8
+ },
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",
15
+ "parserOptions": {
16
+ "project": [
17
+ "tsconfig.json",
18
+ "e2e/tsconfig.json"
19
+ ],
20
+ "createDefaultProgram": true
21
+ },
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"
515
+ }
516
+ }
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
+ ]
802
+ }
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"]
812
+ }
813
+ ]
814
+ };