@gooddata/eslint-config 11.19.0-alpha.0 → 11.19.0-alpha.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 (45) hide show
  1. package/PACKAGES_V8.md +30 -0
  2. package/PACKAGES_V9.md +31 -0
  3. package/README.md +88 -19
  4. package/dist/base.d.ts +12 -0
  5. package/dist/base.js +2206 -0
  6. package/dist/base.json +9 -47
  7. package/dist/browser-esm.d.ts +12 -0
  8. package/dist/browser-esm.js +2226 -0
  9. package/dist/browser-esm.json +9 -47
  10. package/dist/browser.d.ts +12 -0
  11. package/dist/browser.js +2211 -0
  12. package/dist/browser.json +9 -47
  13. package/dist/esm-react-cypress.d.ts +12 -0
  14. package/dist/esm-react-cypress.js +2309 -0
  15. package/dist/esm-react-cypress.json +10 -48
  16. package/dist/esm-react-vitest-storybook.d.ts +12 -0
  17. package/dist/esm-react-vitest-storybook.js +2331 -0
  18. package/dist/esm-react-vitest-storybook.json +14 -50
  19. package/dist/esm-react-vitest.d.ts +12 -0
  20. package/dist/esm-react-vitest.js +2297 -0
  21. package/dist/esm-react-vitest.json +10 -48
  22. package/dist/esm-react.d.ts +12 -0
  23. package/dist/esm-react.js +2272 -0
  24. package/dist/esm-react.json +10 -48
  25. package/dist/esm-vitest.d.ts +12 -0
  26. package/dist/esm-vitest.js +2246 -0
  27. package/dist/esm-vitest.json +9 -47
  28. package/dist/esm.d.ts +12 -0
  29. package/dist/esm.js +2221 -0
  30. package/dist/esm.json +9 -47
  31. package/dist/react-cypress.d.ts +12 -0
  32. package/dist/react-cypress.js +2300 -0
  33. package/dist/react-cypress.json +10 -48
  34. package/dist/react-vitest.d.ts +12 -0
  35. package/dist/react-vitest.js +2288 -0
  36. package/dist/react-vitest.json +10 -48
  37. package/dist/react.d.ts +12 -0
  38. package/dist/react.js +2263 -0
  39. package/dist/react.json +10 -48
  40. package/dist/tsOverride.d.ts +35 -0
  41. package/dist/tsOverride.js +49 -0
  42. package/dist/vitest.d.ts +12 -0
  43. package/dist/vitest.js +2231 -0
  44. package/dist/vitest.json +9 -47
  45. package/package.json +73 -30
package/dist/base.js ADDED
@@ -0,0 +1,2206 @@
1
+ // This file is auto-generated. Do not edit manually.
2
+
3
+ import globals from "globals";
4
+ import plugin0001 from "eslint-plugin-headers";
5
+ import plugin0002 from "@typescript-eslint/eslint-plugin";
6
+ import plugin0003 from "@typescript-eslint/parser";
7
+ import plugin0004 from "eslint-plugin-no-barrel-files";
8
+ import plugin0005 from "eslint-plugin-import";
9
+ import plugin0006 from "eslint-plugin-jsdoc";
10
+ import plugin0007 from "eslint-plugin-no-only-tests";
11
+ import plugin0008 from "eslint-plugin-prettier";
12
+ import plugin0009 from "eslint-plugin-sonarjs";
13
+
14
+ export default [
15
+ {
16
+ languageOptions: {
17
+ globals: { ...globals.node, ...globals.es2022 },
18
+ },
19
+ },
20
+ {
21
+ rules: {
22
+ "constructor-super": "error",
23
+ "for-direction": "error",
24
+ "getter-return": "error",
25
+ "no-async-promise-executor": "error",
26
+ "no-case-declarations": "error",
27
+ "no-class-assign": "error",
28
+ "no-compare-neg-zero": "error",
29
+ "no-cond-assign": "error",
30
+ "no-const-assign": "error",
31
+ "no-constant-binary-expression": "error",
32
+ "no-constant-condition": "error",
33
+ "no-control-regex": "error",
34
+ "no-debugger": "error",
35
+ "no-delete-var": "error",
36
+ "no-dupe-args": "error",
37
+ "no-dupe-class-members": "error",
38
+ "no-dupe-else-if": "error",
39
+ "no-dupe-keys": "error",
40
+ "no-duplicate-case": "error",
41
+ "no-empty": "error",
42
+ "no-empty-character-class": "error",
43
+ "no-empty-pattern": "error",
44
+ "no-empty-static-block": "error",
45
+ "no-ex-assign": "error",
46
+ "no-extra-boolean-cast": "error",
47
+ "no-fallthrough": "error",
48
+ "no-func-assign": "error",
49
+ "no-global-assign": "error",
50
+ "no-import-assign": "error",
51
+ "no-invalid-regexp": "error",
52
+ "no-irregular-whitespace": "error",
53
+ "no-loss-of-precision": "error",
54
+ "no-misleading-character-class": "error",
55
+ "no-new-native-nonconstructor": "error",
56
+ "no-nonoctal-decimal-escape": "error",
57
+ "no-obj-calls": "error",
58
+ "no-octal": "error",
59
+ "no-prototype-builtins": "error",
60
+ "no-redeclare": "error",
61
+ "no-regex-spaces": "error",
62
+ "no-self-assign": "error",
63
+ "no-setter-return": "error",
64
+ "no-shadow-restricted-names": "error",
65
+ "no-sparse-arrays": "error",
66
+ "no-this-before-super": "error",
67
+ "no-undef": "error",
68
+ "no-unexpected-multiline": "off",
69
+ "no-unreachable": "error",
70
+ "no-unsafe-finally": "error",
71
+ "no-unsafe-negation": "error",
72
+ "no-unsafe-optional-chaining": "error",
73
+ "no-unused-labels": "error",
74
+ "no-unused-private-class-members": "error",
75
+ "no-unused-vars": "error",
76
+ "no-useless-backreference": "error",
77
+ "no-useless-catch": "error",
78
+ "no-useless-escape": "off",
79
+ "no-with": "error",
80
+ "require-yield": "error",
81
+ "use-isnan": "error",
82
+ "valid-typeof": "error",
83
+ "no-console": [
84
+ 2,
85
+ {
86
+ allow: [
87
+ "warn",
88
+ "error",
89
+ ],
90
+ },
91
+ ],
92
+ "no-restricted-exports": [
93
+ 2,
94
+ {
95
+ restrictDefaultExports: {
96
+ direct: true,
97
+ named: true,
98
+ defaultFrom: true,
99
+ namedFrom: true,
100
+ namespaceFrom: true,
101
+ },
102
+ },
103
+ ],
104
+ "no-duplicate-imports": [
105
+ "error",
106
+ {
107
+ includeExports: true,
108
+ },
109
+ ],
110
+ "no-restricted-imports": [
111
+ "error",
112
+ {
113
+ paths: [
114
+ {
115
+ name: "react",
116
+ importNames: [
117
+ "default",
118
+ ],
119
+ message: "Default import from React is not allowed. Use named imports instead.",
120
+ },
121
+ {
122
+ name: "@gooddata/sdk-ui-kit",
123
+ importNames: [
124
+ "Icon",
125
+ ],
126
+ message: "The Icon export cannot be tree-shaken, use {IconName}Icon imports instead.",
127
+ },
128
+ {
129
+ name: "vitest",
130
+ importNames: [
131
+ "test",
132
+ ],
133
+ message: "Use 'it' instead of 'test' for consistency.",
134
+ },
135
+ ],
136
+ patterns: [
137
+ {
138
+ group: [
139
+ "lodash-es",
140
+ ],
141
+ importNames: [
142
+ "get",
143
+ "getOr",
144
+ ],
145
+ message: "Please use the ?. and ?? operators instead.",
146
+ },
147
+ {
148
+ group: [
149
+ "lodash-es",
150
+ ],
151
+ importNames: [
152
+ "keys",
153
+ ],
154
+ message: "Please use Object.keys() instead.",
155
+ },
156
+ {
157
+ group: [
158
+ "lodash-es",
159
+ ],
160
+ importNames: [
161
+ "values",
162
+ ],
163
+ message: "Please use Object.values() instead.",
164
+ },
165
+ {
166
+ group: [
167
+ "lodash-es",
168
+ ],
169
+ importNames: [
170
+ "entries",
171
+ "toPairs",
172
+ ],
173
+ message: "Please use Object.entries() instead.",
174
+ },
175
+ {
176
+ group: [
177
+ "lodash-es",
178
+ ],
179
+ importNames: [
180
+ "map",
181
+ ],
182
+ message: "Please use Array.prototype.map() instead.",
183
+ },
184
+ {
185
+ group: [
186
+ "lodash-es",
187
+ ],
188
+ importNames: [
189
+ "flatMap",
190
+ ],
191
+ message: "Please use Array.prototype.flatMap() instead.",
192
+ },
193
+ {
194
+ group: [
195
+ "lodash-es",
196
+ ],
197
+ importNames: [
198
+ "filter",
199
+ ],
200
+ message: "Please use Array.prototype.filter() instead.",
201
+ },
202
+ {
203
+ group: [
204
+ "lodash-es",
205
+ ],
206
+ importNames: [
207
+ "find",
208
+ ],
209
+ message: "Please use Array.prototype.find() instead.",
210
+ },
211
+ {
212
+ group: [
213
+ "lodash-es",
214
+ ],
215
+ importNames: [
216
+ "findIndex",
217
+ ],
218
+ message: "Please use Array.prototype.findIndex() instead.",
219
+ },
220
+ {
221
+ group: [
222
+ "lodash-es",
223
+ ],
224
+ importNames: [
225
+ "includes",
226
+ ],
227
+ message: "Please use Array.prototype.includes() instead.",
228
+ },
229
+ {
230
+ group: [
231
+ "lodash-es",
232
+ ],
233
+ importNames: [
234
+ "some",
235
+ ],
236
+ message: "Please use Array.prototype.some() instead.",
237
+ },
238
+ {
239
+ group: [
240
+ "lodash-es",
241
+ ],
242
+ importNames: [
243
+ "every",
244
+ ],
245
+ message: "Please use Array.prototype.every() instead.",
246
+ },
247
+ {
248
+ group: [
249
+ "lodash-es",
250
+ ],
251
+ importNames: [
252
+ "concat",
253
+ ],
254
+ message: "Please use Array.prototype.concat() or spread [...arr1, ...arr2] instead.",
255
+ },
256
+ {
257
+ group: [
258
+ "lodash-es",
259
+ ],
260
+ importNames: [
261
+ "reverse",
262
+ ],
263
+ message: "Please use Array.prototype.reverse() instead.",
264
+ },
265
+ {
266
+ group: [
267
+ "lodash-es",
268
+ ],
269
+ importNames: [
270
+ "slice",
271
+ ],
272
+ message: "Please use Array.prototype.slice() instead.",
273
+ },
274
+ {
275
+ group: [
276
+ "lodash-es",
277
+ ],
278
+ importNames: [
279
+ "indexOf",
280
+ ],
281
+ message: "Please use Array.prototype.indexOf() instead.",
282
+ },
283
+ {
284
+ group: [
285
+ "lodash-es",
286
+ ],
287
+ importNames: [
288
+ "lastIndexOf",
289
+ ],
290
+ message: "Please use Array.prototype.lastIndexOf() instead.",
291
+ },
292
+ {
293
+ group: [
294
+ "lodash-es",
295
+ ],
296
+ importNames: [
297
+ "fill",
298
+ ],
299
+ message: "Please use Array.prototype.fill() instead.",
300
+ },
301
+ {
302
+ group: [
303
+ "lodash-es",
304
+ ],
305
+ importNames: [
306
+ "startsWith",
307
+ ],
308
+ message: "Please use String.prototype.startsWith() instead.",
309
+ },
310
+ {
311
+ group: [
312
+ "lodash-es",
313
+ ],
314
+ importNames: [
315
+ "endsWith",
316
+ ],
317
+ message: "Please use String.prototype.endsWith() instead.",
318
+ },
319
+ {
320
+ group: [
321
+ "lodash-es",
322
+ ],
323
+ importNames: [
324
+ "repeat",
325
+ ],
326
+ message: "Please use String.prototype.repeat() instead.",
327
+ },
328
+ {
329
+ group: [
330
+ "lodash-es",
331
+ ],
332
+ importNames: [
333
+ "padStart",
334
+ ],
335
+ message: "Please use String.prototype.padStart() instead.",
336
+ },
337
+ {
338
+ group: [
339
+ "lodash-es",
340
+ ],
341
+ importNames: [
342
+ "padEnd",
343
+ ],
344
+ message: "Please use String.prototype.padEnd() instead.",
345
+ },
346
+ {
347
+ group: [
348
+ "lodash-es",
349
+ ],
350
+ importNames: [
351
+ "trim",
352
+ ],
353
+ message: "Please use String.prototype.trim() instead.",
354
+ },
355
+ {
356
+ group: [
357
+ "lodash-es",
358
+ ],
359
+ importNames: [
360
+ "trimStart",
361
+ "trimLeft",
362
+ ],
363
+ message: "Please use String.prototype.trimStart() instead.",
364
+ },
365
+ {
366
+ group: [
367
+ "lodash-es",
368
+ ],
369
+ importNames: [
370
+ "trimEnd",
371
+ "trimRight",
372
+ ],
373
+ message: "Please use String.prototype.trimEnd() instead.",
374
+ },
375
+ {
376
+ group: [
377
+ "lodash-es",
378
+ ],
379
+ importNames: [
380
+ "toUpper",
381
+ ],
382
+ message: "Please use String.prototype.toUpperCase() instead.",
383
+ },
384
+ {
385
+ group: [
386
+ "lodash-es",
387
+ ],
388
+ importNames: [
389
+ "toLower",
390
+ ],
391
+ message: "Please use String.prototype.toLowerCase() instead.",
392
+ },
393
+ {
394
+ group: [
395
+ "lodash-es",
396
+ ],
397
+ importNames: [
398
+ "isArray",
399
+ ],
400
+ message: "Please use Array.isArray() instead.",
401
+ },
402
+ {
403
+ group: [
404
+ "lodash-es",
405
+ ],
406
+ importNames: [
407
+ "isNaN",
408
+ ],
409
+ message: "Please use Number.isNaN() instead.",
410
+ },
411
+ {
412
+ group: [
413
+ "lodash-es",
414
+ ],
415
+ importNames: [
416
+ "isFinite",
417
+ ],
418
+ message: "Please use Number.isFinite() instead.",
419
+ },
420
+ {
421
+ group: [
422
+ "lodash-es",
423
+ ],
424
+ importNames: [
425
+ "isInteger",
426
+ ],
427
+ message: "Please use Number.isInteger() instead.",
428
+ },
429
+ {
430
+ group: [
431
+ "lodash-es",
432
+ ],
433
+ importNames: [
434
+ "isNull",
435
+ ],
436
+ message: "Please use value === null instead.",
437
+ },
438
+ {
439
+ group: [
440
+ "lodash-es",
441
+ ],
442
+ importNames: [
443
+ "isUndefined",
444
+ ],
445
+ message: "Please use value === undefined instead.",
446
+ },
447
+ {
448
+ group: [
449
+ "lodash-es",
450
+ ],
451
+ importNames: [
452
+ "defaultTo",
453
+ ],
454
+ message: "Please use value ?? defaultValue instead.",
455
+ },
456
+ {
457
+ group: [
458
+ "lodash-es",
459
+ ],
460
+ importNames: [
461
+ "assign",
462
+ ],
463
+ message: "Please use Object.assign() or spread syntax {...obj} instead.",
464
+ },
465
+ {
466
+ group: [
467
+ "lodash-es",
468
+ ],
469
+ importNames: [
470
+ "flatten",
471
+ ],
472
+ message: "Please use Array.prototype.flat() instead.",
473
+ },
474
+ {
475
+ group: [
476
+ "lodash-es",
477
+ ],
478
+ importNames: [
479
+ "flattenDeep",
480
+ ],
481
+ message: "Please use Array.prototype.flat(Infinity) instead.",
482
+ },
483
+ {
484
+ group: [
485
+ "lodash-es",
486
+ ],
487
+ importNames: [
488
+ "isNil",
489
+ ],
490
+ message: "Please use value === null || value === undefined instead.",
491
+ },
492
+ {
493
+ group: [
494
+ "lodash-es",
495
+ ],
496
+ importNames: [
497
+ "noop",
498
+ ],
499
+ message: "Please use () => {} instead.",
500
+ },
501
+ {
502
+ group: [
503
+ "lodash-es",
504
+ ],
505
+ importNames: [
506
+ "identity",
507
+ ],
508
+ message: "Please use x => x instead.",
509
+ },
510
+ {
511
+ group: [
512
+ "lodash-es",
513
+ ],
514
+ importNames: [
515
+ "first",
516
+ "head",
517
+ ],
518
+ message: "Please use Array.prototype.at(0) instead.",
519
+ },
520
+ {
521
+ group: [
522
+ "lodash-es",
523
+ ],
524
+ importNames: [
525
+ "last",
526
+ ],
527
+ message: "Please use Array.prototype.at(-1) instead.",
528
+ },
529
+ {
530
+ group: [
531
+ "lodash-es",
532
+ ],
533
+ importNames: [
534
+ "forEach",
535
+ ],
536
+ message: "Please use Array.prototype.forEach() instead.",
537
+ },
538
+ {
539
+ group: [
540
+ "lodash-es",
541
+ ],
542
+ importNames: [
543
+ "fromPairs",
544
+ ],
545
+ message: "Please use Object.fromEntries() instead.",
546
+ },
547
+ {
548
+ group: [
549
+ "lodash-es",
550
+ ],
551
+ importNames: [
552
+ "join",
553
+ ],
554
+ message: "Please use Array.prototype.join() instead.",
555
+ },
556
+ {
557
+ group: [
558
+ "lodash-es",
559
+ ],
560
+ importNames: [
561
+ "isDate",
562
+ ],
563
+ message: "Please use val instanceof Date instead.",
564
+ },
565
+ {
566
+ group: [
567
+ "lodash-es",
568
+ ],
569
+ importNames: [
570
+ "isFunction",
571
+ ],
572
+ message: "Please use typeof val === 'function' instead.",
573
+ },
574
+ {
575
+ group: [
576
+ "lodash-es",
577
+ ],
578
+ importNames: [
579
+ "isNumber",
580
+ ],
581
+ message: "Please use typeof val === 'number' instead.",
582
+ },
583
+ {
584
+ group: [
585
+ "lodash-es",
586
+ ],
587
+ importNames: [
588
+ "isObject",
589
+ ],
590
+ message: "Please use val !== null && typeof val === 'object' instead.",
591
+ },
592
+ {
593
+ group: [
594
+ "lodash-es",
595
+ ],
596
+ importNames: [
597
+ "isString",
598
+ ],
599
+ message: "Please use typeof val === 'string' instead.",
600
+ },
601
+ {
602
+ group: [
603
+ "lodash-es",
604
+ ],
605
+ importNames: [
606
+ "toString",
607
+ ],
608
+ message: "Please use String(val) instead.",
609
+ },
610
+ {
611
+ group: [
612
+ "lodash-es",
613
+ ],
614
+ importNames: [
615
+ "flow",
616
+ "flowRight",
617
+ ],
618
+ message: "Please use refactoring your code instead.",
619
+ },
620
+ ],
621
+ },
622
+ ],
623
+ "no-restricted-syntax": [
624
+ "error",
625
+ {
626
+ selector: "MemberExpression[object.name='React']",
627
+ message: "Do not use `React.*`. Use named imports instead.",
628
+ },
629
+ ],
630
+ "sort-imports": [
631
+ "error",
632
+ {
633
+ ignoreCase: false,
634
+ ignoreDeclarationSort: true,
635
+ ignoreMemberSort: false,
636
+ },
637
+ ],
638
+ "no-negated-condition": "error",
639
+ "no-unneeded-ternary": [
640
+ "error",
641
+ {
642
+ defaultAssignment: false,
643
+ },
644
+ ],
645
+ "no-warning-comments": [
646
+ "warn",
647
+ {
648
+ terms: [
649
+ "todo",
650
+ ],
651
+ location: "start",
652
+ },
653
+ ],
654
+ },
655
+ },
656
+ {
657
+ files: [
658
+ "**/*.ts",
659
+ "**/*.tsx",
660
+ ],
661
+ ignores: [
662
+ "**/vitest.config.ts",
663
+ "**/vitest.*.config.ts",
664
+ "**/vitest.setup.ts",
665
+ "**/vitest.setup.tsx",
666
+ "**/*.test.ts",
667
+ "**/*.test.tsx",
668
+ "**/*.test.utils.ts",
669
+ "**/*.test.utils.tsx",
670
+ "**/*.test.helpers.ts",
671
+ "**/*.test.helpers.tsx",
672
+ ],
673
+ rules: {
674
+ "no-restricted-imports": [
675
+ "error",
676
+ {
677
+ paths: [
678
+ {
679
+ name: "react",
680
+ importNames: [
681
+ "default",
682
+ ],
683
+ message: "Default import from React is not allowed. Use named imports instead.",
684
+ },
685
+ {
686
+ name: "@gooddata/sdk-ui-kit",
687
+ importNames: [
688
+ "Icon",
689
+ ],
690
+ message: "The Icon export cannot be tree-shaken, use {IconName}Icon imports instead.",
691
+ },
692
+ {
693
+ name: "vitest",
694
+ importNames: [
695
+ "test",
696
+ ],
697
+ message: "Use 'it' instead of 'test' for consistency.",
698
+ },
699
+ ],
700
+ patterns: [
701
+ {
702
+ group: [
703
+ "lodash-es",
704
+ ],
705
+ importNames: [
706
+ "get",
707
+ "getOr",
708
+ ],
709
+ message: "Please use the ?. and ?? operators instead.",
710
+ },
711
+ {
712
+ group: [
713
+ "lodash-es",
714
+ ],
715
+ importNames: [
716
+ "keys",
717
+ ],
718
+ message: "Please use Object.keys() instead.",
719
+ },
720
+ {
721
+ group: [
722
+ "lodash-es",
723
+ ],
724
+ importNames: [
725
+ "values",
726
+ ],
727
+ message: "Please use Object.values() instead.",
728
+ },
729
+ {
730
+ group: [
731
+ "lodash-es",
732
+ ],
733
+ importNames: [
734
+ "entries",
735
+ "toPairs",
736
+ ],
737
+ message: "Please use Object.entries() instead.",
738
+ },
739
+ {
740
+ group: [
741
+ "lodash-es",
742
+ ],
743
+ importNames: [
744
+ "map",
745
+ ],
746
+ message: "Please use Array.prototype.map() instead.",
747
+ },
748
+ {
749
+ group: [
750
+ "lodash-es",
751
+ ],
752
+ importNames: [
753
+ "flatMap",
754
+ ],
755
+ message: "Please use Array.prototype.flatMap() instead.",
756
+ },
757
+ {
758
+ group: [
759
+ "lodash-es",
760
+ ],
761
+ importNames: [
762
+ "filter",
763
+ ],
764
+ message: "Please use Array.prototype.filter() instead.",
765
+ },
766
+ {
767
+ group: [
768
+ "lodash-es",
769
+ ],
770
+ importNames: [
771
+ "find",
772
+ ],
773
+ message: "Please use Array.prototype.find() instead.",
774
+ },
775
+ {
776
+ group: [
777
+ "lodash-es",
778
+ ],
779
+ importNames: [
780
+ "findIndex",
781
+ ],
782
+ message: "Please use Array.prototype.findIndex() instead.",
783
+ },
784
+ {
785
+ group: [
786
+ "lodash-es",
787
+ ],
788
+ importNames: [
789
+ "includes",
790
+ ],
791
+ message: "Please use Array.prototype.includes() instead.",
792
+ },
793
+ {
794
+ group: [
795
+ "lodash-es",
796
+ ],
797
+ importNames: [
798
+ "some",
799
+ ],
800
+ message: "Please use Array.prototype.some() instead.",
801
+ },
802
+ {
803
+ group: [
804
+ "lodash-es",
805
+ ],
806
+ importNames: [
807
+ "every",
808
+ ],
809
+ message: "Please use Array.prototype.every() instead.",
810
+ },
811
+ {
812
+ group: [
813
+ "lodash-es",
814
+ ],
815
+ importNames: [
816
+ "concat",
817
+ ],
818
+ message: "Please use Array.prototype.concat() or spread [...arr1, ...arr2] instead.",
819
+ },
820
+ {
821
+ group: [
822
+ "lodash-es",
823
+ ],
824
+ importNames: [
825
+ "reverse",
826
+ ],
827
+ message: "Please use Array.prototype.reverse() instead.",
828
+ },
829
+ {
830
+ group: [
831
+ "lodash-es",
832
+ ],
833
+ importNames: [
834
+ "slice",
835
+ ],
836
+ message: "Please use Array.prototype.slice() instead.",
837
+ },
838
+ {
839
+ group: [
840
+ "lodash-es",
841
+ ],
842
+ importNames: [
843
+ "indexOf",
844
+ ],
845
+ message: "Please use Array.prototype.indexOf() instead.",
846
+ },
847
+ {
848
+ group: [
849
+ "lodash-es",
850
+ ],
851
+ importNames: [
852
+ "lastIndexOf",
853
+ ],
854
+ message: "Please use Array.prototype.lastIndexOf() instead.",
855
+ },
856
+ {
857
+ group: [
858
+ "lodash-es",
859
+ ],
860
+ importNames: [
861
+ "fill",
862
+ ],
863
+ message: "Please use Array.prototype.fill() instead.",
864
+ },
865
+ {
866
+ group: [
867
+ "lodash-es",
868
+ ],
869
+ importNames: [
870
+ "startsWith",
871
+ ],
872
+ message: "Please use String.prototype.startsWith() instead.",
873
+ },
874
+ {
875
+ group: [
876
+ "lodash-es",
877
+ ],
878
+ importNames: [
879
+ "endsWith",
880
+ ],
881
+ message: "Please use String.prototype.endsWith() instead.",
882
+ },
883
+ {
884
+ group: [
885
+ "lodash-es",
886
+ ],
887
+ importNames: [
888
+ "repeat",
889
+ ],
890
+ message: "Please use String.prototype.repeat() instead.",
891
+ },
892
+ {
893
+ group: [
894
+ "lodash-es",
895
+ ],
896
+ importNames: [
897
+ "padStart",
898
+ ],
899
+ message: "Please use String.prototype.padStart() instead.",
900
+ },
901
+ {
902
+ group: [
903
+ "lodash-es",
904
+ ],
905
+ importNames: [
906
+ "padEnd",
907
+ ],
908
+ message: "Please use String.prototype.padEnd() instead.",
909
+ },
910
+ {
911
+ group: [
912
+ "lodash-es",
913
+ ],
914
+ importNames: [
915
+ "trim",
916
+ ],
917
+ message: "Please use String.prototype.trim() instead.",
918
+ },
919
+ {
920
+ group: [
921
+ "lodash-es",
922
+ ],
923
+ importNames: [
924
+ "trimStart",
925
+ "trimLeft",
926
+ ],
927
+ message: "Please use String.prototype.trimStart() instead.",
928
+ },
929
+ {
930
+ group: [
931
+ "lodash-es",
932
+ ],
933
+ importNames: [
934
+ "trimEnd",
935
+ "trimRight",
936
+ ],
937
+ message: "Please use String.prototype.trimEnd() instead.",
938
+ },
939
+ {
940
+ group: [
941
+ "lodash-es",
942
+ ],
943
+ importNames: [
944
+ "toUpper",
945
+ ],
946
+ message: "Please use String.prototype.toUpperCase() instead.",
947
+ },
948
+ {
949
+ group: [
950
+ "lodash-es",
951
+ ],
952
+ importNames: [
953
+ "toLower",
954
+ ],
955
+ message: "Please use String.prototype.toLowerCase() instead.",
956
+ },
957
+ {
958
+ group: [
959
+ "lodash-es",
960
+ ],
961
+ importNames: [
962
+ "isArray",
963
+ ],
964
+ message: "Please use Array.isArray() instead.",
965
+ },
966
+ {
967
+ group: [
968
+ "lodash-es",
969
+ ],
970
+ importNames: [
971
+ "isNaN",
972
+ ],
973
+ message: "Please use Number.isNaN() instead.",
974
+ },
975
+ {
976
+ group: [
977
+ "lodash-es",
978
+ ],
979
+ importNames: [
980
+ "isFinite",
981
+ ],
982
+ message: "Please use Number.isFinite() instead.",
983
+ },
984
+ {
985
+ group: [
986
+ "lodash-es",
987
+ ],
988
+ importNames: [
989
+ "isInteger",
990
+ ],
991
+ message: "Please use Number.isInteger() instead.",
992
+ },
993
+ {
994
+ group: [
995
+ "lodash-es",
996
+ ],
997
+ importNames: [
998
+ "isNull",
999
+ ],
1000
+ message: "Please use value === null instead.",
1001
+ },
1002
+ {
1003
+ group: [
1004
+ "lodash-es",
1005
+ ],
1006
+ importNames: [
1007
+ "isUndefined",
1008
+ ],
1009
+ message: "Please use value === undefined instead.",
1010
+ },
1011
+ {
1012
+ group: [
1013
+ "lodash-es",
1014
+ ],
1015
+ importNames: [
1016
+ "defaultTo",
1017
+ ],
1018
+ message: "Please use value ?? defaultValue instead.",
1019
+ },
1020
+ {
1021
+ group: [
1022
+ "lodash-es",
1023
+ ],
1024
+ importNames: [
1025
+ "assign",
1026
+ ],
1027
+ message: "Please use Object.assign() or spread syntax {...obj} instead.",
1028
+ },
1029
+ {
1030
+ group: [
1031
+ "lodash-es",
1032
+ ],
1033
+ importNames: [
1034
+ "flatten",
1035
+ ],
1036
+ message: "Please use Array.prototype.flat() instead.",
1037
+ },
1038
+ {
1039
+ group: [
1040
+ "lodash-es",
1041
+ ],
1042
+ importNames: [
1043
+ "flattenDeep",
1044
+ ],
1045
+ message: "Please use Array.prototype.flat(Infinity) instead.",
1046
+ },
1047
+ {
1048
+ group: [
1049
+ "lodash-es",
1050
+ ],
1051
+ importNames: [
1052
+ "isNil",
1053
+ ],
1054
+ message: "Please use value === null || value === undefined instead.",
1055
+ },
1056
+ {
1057
+ group: [
1058
+ "lodash-es",
1059
+ ],
1060
+ importNames: [
1061
+ "noop",
1062
+ ],
1063
+ message: "Please use () => {} instead.",
1064
+ },
1065
+ {
1066
+ group: [
1067
+ "lodash-es",
1068
+ ],
1069
+ importNames: [
1070
+ "identity",
1071
+ ],
1072
+ message: "Please use x => x instead.",
1073
+ },
1074
+ {
1075
+ group: [
1076
+ "lodash-es",
1077
+ ],
1078
+ importNames: [
1079
+ "first",
1080
+ "head",
1081
+ ],
1082
+ message: "Please use Array.prototype.at(0) instead.",
1083
+ },
1084
+ {
1085
+ group: [
1086
+ "lodash-es",
1087
+ ],
1088
+ importNames: [
1089
+ "last",
1090
+ ],
1091
+ message: "Please use Array.prototype.at(-1) instead.",
1092
+ },
1093
+ {
1094
+ group: [
1095
+ "lodash-es",
1096
+ ],
1097
+ importNames: [
1098
+ "forEach",
1099
+ ],
1100
+ message: "Please use Array.prototype.forEach() instead.",
1101
+ },
1102
+ {
1103
+ group: [
1104
+ "lodash-es",
1105
+ ],
1106
+ importNames: [
1107
+ "fromPairs",
1108
+ ],
1109
+ message: "Please use Object.fromEntries() instead.",
1110
+ },
1111
+ {
1112
+ group: [
1113
+ "lodash-es",
1114
+ ],
1115
+ importNames: [
1116
+ "join",
1117
+ ],
1118
+ message: "Please use Array.prototype.join() instead.",
1119
+ },
1120
+ {
1121
+ group: [
1122
+ "lodash-es",
1123
+ ],
1124
+ importNames: [
1125
+ "isDate",
1126
+ ],
1127
+ message: "Please use val instanceof Date instead.",
1128
+ },
1129
+ {
1130
+ group: [
1131
+ "lodash-es",
1132
+ ],
1133
+ importNames: [
1134
+ "isFunction",
1135
+ ],
1136
+ message: "Please use typeof val === 'function' instead.",
1137
+ },
1138
+ {
1139
+ group: [
1140
+ "lodash-es",
1141
+ ],
1142
+ importNames: [
1143
+ "isNumber",
1144
+ ],
1145
+ message: "Please use typeof val === 'number' instead.",
1146
+ },
1147
+ {
1148
+ group: [
1149
+ "lodash-es",
1150
+ ],
1151
+ importNames: [
1152
+ "isObject",
1153
+ ],
1154
+ message: "Please use val !== null && typeof val === 'object' instead.",
1155
+ },
1156
+ {
1157
+ group: [
1158
+ "lodash-es",
1159
+ ],
1160
+ importNames: [
1161
+ "isString",
1162
+ ],
1163
+ message: "Please use typeof val === 'string' instead.",
1164
+ },
1165
+ {
1166
+ group: [
1167
+ "lodash-es",
1168
+ ],
1169
+ importNames: [
1170
+ "toString",
1171
+ ],
1172
+ message: "Please use String(val) instead.",
1173
+ },
1174
+ {
1175
+ group: [
1176
+ "lodash-es",
1177
+ ],
1178
+ importNames: [
1179
+ "flow",
1180
+ "flowRight",
1181
+ ],
1182
+ message: "Please use refactoring your code instead.",
1183
+ },
1184
+ {
1185
+ group: [
1186
+ "vitest",
1187
+ ],
1188
+ message: "Importing from vitest is only allowed in test files.",
1189
+ },
1190
+ ],
1191
+ },
1192
+ ],
1193
+ },
1194
+ },
1195
+ {
1196
+ files: [
1197
+ "**/eslint.config.ts",
1198
+ "**/eslint.config.js",
1199
+ ],
1200
+ rules: {
1201
+ "no-restricted-exports": "off",
1202
+ },
1203
+ },
1204
+ {
1205
+ plugins: {
1206
+ headers: plugin0001,
1207
+ },
1208
+ rules: {
1209
+ "headers/header-format": [
1210
+ "error",
1211
+ {
1212
+ source: "string",
1213
+ style: "line",
1214
+ content: "(C) (years) GoodData Corporation",
1215
+ patterns: {
1216
+ years: {
1217
+ pattern: "\\d{4}(-\\d{4})?",
1218
+ defaultValue: "2026",
1219
+ },
1220
+ },
1221
+ },
1222
+ ],
1223
+ },
1224
+ },
1225
+ {
1226
+ languageOptions: {
1227
+ parser: plugin0003,
1228
+ sourceType: "module",
1229
+ },
1230
+ plugins: {
1231
+ "@typescript-eslint": plugin0002,
1232
+ },
1233
+ },
1234
+ {
1235
+ files: [
1236
+ "**/*.ts",
1237
+ "**/*.tsx",
1238
+ "**/*.mts",
1239
+ "**/*.cts",
1240
+ ],
1241
+ rules: {
1242
+ "constructor-super": "off",
1243
+ "getter-return": "off",
1244
+ "no-class-assign": "off",
1245
+ "no-const-assign": "off",
1246
+ "no-dupe-args": "off",
1247
+ "no-dupe-class-members": "off",
1248
+ "no-dupe-keys": "off",
1249
+ "no-func-assign": "off",
1250
+ "no-import-assign": "off",
1251
+ "no-new-native-nonconstructor": "off",
1252
+ "no-new-symbol": "off",
1253
+ "no-obj-calls": "off",
1254
+ "no-redeclare": "off",
1255
+ "no-setter-return": "off",
1256
+ "no-this-before-super": "off",
1257
+ "no-undef": "off",
1258
+ "no-unreachable": "off",
1259
+ "no-unsafe-negation": "off",
1260
+ "no-var": "error",
1261
+ "no-with": "off",
1262
+ "prefer-const": "error",
1263
+ "prefer-rest-params": "error",
1264
+ "prefer-spread": "error",
1265
+ "@typescript-eslint/ban-ts-comment": [
1266
+ "error",
1267
+ {
1268
+ "ts-expect-error": "allow-with-description",
1269
+ },
1270
+ ],
1271
+ "no-array-constructor": "off",
1272
+ "@typescript-eslint/no-array-constructor": "error",
1273
+ "@typescript-eslint/no-duplicate-enum-values": "error",
1274
+ "@typescript-eslint/no-empty-object-type": "error",
1275
+ "@typescript-eslint/no-explicit-any": "error",
1276
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
1277
+ "@typescript-eslint/no-misused-new": "error",
1278
+ "@typescript-eslint/no-namespace": "error",
1279
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
1280
+ "@typescript-eslint/no-require-imports": "error",
1281
+ "@typescript-eslint/no-this-alias": "error",
1282
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
1283
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
1284
+ "@typescript-eslint/no-unsafe-function-type": "error",
1285
+ "no-unused-expressions": "off",
1286
+ "@typescript-eslint/no-unused-expressions": "error",
1287
+ "no-unused-vars": "off",
1288
+ "@typescript-eslint/no-unused-vars": [
1289
+ 2,
1290
+ {
1291
+ varsIgnorePattern: "^_.*$",
1292
+ argsIgnorePattern: "^_.*$",
1293
+ },
1294
+ ],
1295
+ "@typescript-eslint/no-wrapper-object-types": "error",
1296
+ "@typescript-eslint/prefer-as-const": "error",
1297
+ "@typescript-eslint/prefer-namespace-keyword": "error",
1298
+ "@typescript-eslint/triple-slash-reference": "error",
1299
+ "@typescript-eslint/explicit-function-return-type": 0,
1300
+ "@typescript-eslint/no-use-before-define": 0,
1301
+ "@typescript-eslint/no-empty-function": 0,
1302
+ "@typescript-eslint/naming-convention": [
1303
+ "error",
1304
+ {
1305
+ selector: "interface",
1306
+ format: [
1307
+ "PascalCase",
1308
+ ],
1309
+ custom: {
1310
+ regex: "^I[A-Z]",
1311
+ match: true,
1312
+ },
1313
+ },
1314
+ ],
1315
+ "@typescript-eslint/array-type": "off",
1316
+ "@typescript-eslint/no-restricted-types": [
1317
+ "error",
1318
+ {
1319
+ types: {
1320
+ String: {
1321
+ message: "Use 'string' instead",
1322
+ fixWith: "string",
1323
+ },
1324
+ Number: {
1325
+ message: "Use 'number' instead",
1326
+ fixWith: "number",
1327
+ },
1328
+ Boolean: {
1329
+ message: "Use 'boolean' instead",
1330
+ fixWith: "boolean",
1331
+ },
1332
+ Symbol: {
1333
+ message: "Use 'symbol' instead",
1334
+ fixWith: "symbol",
1335
+ },
1336
+ },
1337
+ },
1338
+ ],
1339
+ "@typescript-eslint/consistent-type-exports": [
1340
+ "error",
1341
+ {
1342
+ fixMixedExportsWithInlineTypeSpecifier: false,
1343
+ },
1344
+ ],
1345
+ "@typescript-eslint/explicit-member-accessibility": "off",
1346
+ "@typescript-eslint/interface-name-prefix": "off",
1347
+ "@typescript-eslint/member-ordering": "off",
1348
+ "@typescript-eslint/no-inferrable-types": "off",
1349
+ "@typescript-eslint/no-non-null-assertion": "off",
1350
+ "@typescript-eslint/prefer-optional-chain": "error",
1351
+ "no-restricted-syntax": [
1352
+ "error",
1353
+ {
1354
+ selector: "MemberExpression[object.name='React']",
1355
+ message: "Do not use `React.*`. Use named imports instead.",
1356
+ },
1357
+ {
1358
+ selector: "TSTypeReference[typeName.type='TSQualifiedName'][typeName.left.name='React']",
1359
+ message: "Do not use `React.*` types. Use named imports instead.",
1360
+ },
1361
+ {
1362
+ selector: "ExportNamespaceSpecifier",
1363
+ message: "Usage of 'export * as …' is forbidden.",
1364
+ },
1365
+ {
1366
+ selector: "ExportAllDeclaration",
1367
+ message: "Usage of `export * from` is forbidden.",
1368
+ },
1369
+ {
1370
+ selector: "ImportDeclaration[source.value=/^(?!.*reference_workspace)\\./] ImportNamespaceSpecifier",
1371
+ message: "Do not use `import * as ...` from relative paths.",
1372
+ },
1373
+ ],
1374
+ "@typescript-eslint/consistent-type-imports": [
1375
+ "error",
1376
+ {
1377
+ prefer: "type-imports",
1378
+ fixStyle: "inline-type-imports",
1379
+ },
1380
+ ],
1381
+ },
1382
+ },
1383
+ {
1384
+ plugins: {
1385
+ "no-barrel-files": plugin0004,
1386
+ },
1387
+ rules: {
1388
+ "no-barrel-files/no-barrel-files": "error",
1389
+ },
1390
+ },
1391
+ {
1392
+ plugins: {
1393
+ import: plugin0005,
1394
+ },
1395
+ settings: {
1396
+ "import/resolver": {
1397
+ typescript: {
1398
+ alwaysTryTypes: true,
1399
+ },
1400
+ node: {
1401
+ extensions: [
1402
+ ".ts",
1403
+ ".tsx",
1404
+ ".js",
1405
+ ".jsx",
1406
+ ".mjs",
1407
+ ".cjs",
1408
+ ],
1409
+ },
1410
+ },
1411
+ },
1412
+ rules: {
1413
+ "import/no-unresolved": "error",
1414
+ "import/named": "error",
1415
+ "import/namespace": "error",
1416
+ "import/default": "error",
1417
+ "import/export": "error",
1418
+ "import/no-named-as-default": "warn",
1419
+ "import/no-named-as-default-member": "warn",
1420
+ "import/no-duplicates": "warn",
1421
+ "import/order": [
1422
+ "error",
1423
+ {
1424
+ pathGroups: [
1425
+ {
1426
+ pattern: "react",
1427
+ group: "external",
1428
+ position: "before",
1429
+ },
1430
+ {
1431
+ pattern: "@gooddata/**",
1432
+ group: "external",
1433
+ position: "after",
1434
+ },
1435
+ ],
1436
+ groups: [
1437
+ "builtin",
1438
+ "external",
1439
+ "internal",
1440
+ [
1441
+ "parent",
1442
+ "sibling",
1443
+ "index",
1444
+ ],
1445
+ ],
1446
+ pathGroupsExcludedImportTypes: [
1447
+ "react",
1448
+ ],
1449
+ alphabetize: {
1450
+ order: "asc",
1451
+ caseInsensitive: true,
1452
+ },
1453
+ "newlines-between": "always",
1454
+ },
1455
+ ],
1456
+ "import/no-unassigned-import": "error",
1457
+ },
1458
+ },
1459
+ {
1460
+ files: [
1461
+ "**/*.ts",
1462
+ "**/*.tsx",
1463
+ ],
1464
+ settings: {
1465
+ "import/extensions": [
1466
+ ".ts",
1467
+ ".cts",
1468
+ ".mts",
1469
+ ".tsx",
1470
+ ".js",
1471
+ ".jsx",
1472
+ ".mjs",
1473
+ ".cjs",
1474
+ ],
1475
+ "import/external-module-folders": [
1476
+ "node_modules",
1477
+ "node_modules/@types",
1478
+ ],
1479
+ "import/parsers": {
1480
+ "@typescript-eslint/parser": [
1481
+ ".ts",
1482
+ ".cts",
1483
+ ".mts",
1484
+ ".tsx",
1485
+ ],
1486
+ },
1487
+ "import/resolver": {
1488
+ node: {
1489
+ extensions: [
1490
+ ".ts",
1491
+ ".cts",
1492
+ ".mts",
1493
+ ".tsx",
1494
+ ".js",
1495
+ ".jsx",
1496
+ ".mjs",
1497
+ ".cjs",
1498
+ ],
1499
+ },
1500
+ },
1501
+ },
1502
+ rules: {
1503
+ "import/named": "off",
1504
+ },
1505
+ },
1506
+ {
1507
+ files: [
1508
+ "**/*.{js,cjs,mjs,jsx}",
1509
+ ],
1510
+ plugins: {
1511
+ jsdoc: plugin0006,
1512
+ },
1513
+ settings: {
1514
+ jsdoc: {
1515
+ mode: "jsdoc",
1516
+ },
1517
+ },
1518
+ rules: {
1519
+ "jsdoc/require-param": "error",
1520
+ },
1521
+ },
1522
+ {
1523
+ plugins: {
1524
+ "no-only-tests": plugin0007,
1525
+ },
1526
+ rules: {
1527
+ "no-only-tests/no-only-tests": [
1528
+ "error",
1529
+ {
1530
+ block: [
1531
+ "fixture",
1532
+ ],
1533
+ focus: [
1534
+ "only",
1535
+ ],
1536
+ },
1537
+ ],
1538
+ },
1539
+ },
1540
+ {
1541
+ plugins: {
1542
+ prettier: plugin0008,
1543
+ },
1544
+ rules: {
1545
+ curly: 0,
1546
+ "no-unexpected-multiline": 0,
1547
+ "@stylistic/lines-around-comment": 0,
1548
+ "@stylistic/max-len": 0,
1549
+ "@stylistic/no-confusing-arrow": 0,
1550
+ "@stylistic/no-mixed-operators": 0,
1551
+ "@stylistic/no-tabs": 0,
1552
+ "@stylistic/quotes": 0,
1553
+ "@stylistic/js/lines-around-comment": 0,
1554
+ "@stylistic/js/max-len": 0,
1555
+ "@stylistic/js/no-confusing-arrow": 0,
1556
+ "@stylistic/js/no-mixed-operators": 0,
1557
+ "@stylistic/js/no-tabs": 0,
1558
+ "@stylistic/js/quotes": 0,
1559
+ "@stylistic/ts/lines-around-comment": 0,
1560
+ "@stylistic/ts/quotes": 0,
1561
+ "@typescript-eslint/lines-around-comment": 0,
1562
+ "@typescript-eslint/quotes": 0,
1563
+ "babel/quotes": 0,
1564
+ "unicorn/template-indent": 0,
1565
+ "vue/html-self-closing": 0,
1566
+ "vue/max-len": 0,
1567
+ "@babel/object-curly-spacing": "off",
1568
+ "@babel/semi": "off",
1569
+ "@stylistic/array-bracket-newline": "off",
1570
+ "@stylistic/array-bracket-spacing": "off",
1571
+ "@stylistic/array-element-newline": "off",
1572
+ "@stylistic/arrow-parens": "off",
1573
+ "@stylistic/arrow-spacing": "off",
1574
+ "@stylistic/block-spacing": "off",
1575
+ "@stylistic/brace-style": "off",
1576
+ "@stylistic/comma-dangle": "off",
1577
+ "@stylistic/comma-spacing": "off",
1578
+ "@stylistic/comma-style": "off",
1579
+ "@stylistic/computed-property-spacing": "off",
1580
+ "@stylistic/dot-location": "off",
1581
+ "@stylistic/eol-last": "off",
1582
+ "@stylistic/func-call-spacing": "off",
1583
+ "@stylistic/function-call-argument-newline": "off",
1584
+ "@stylistic/function-call-spacing": "off",
1585
+ "@stylistic/function-paren-newline": "off",
1586
+ "@stylistic/generator-star-spacing": "off",
1587
+ "@stylistic/implicit-arrow-linebreak": "off",
1588
+ "@stylistic/indent": "off",
1589
+ "@stylistic/jsx-quotes": "off",
1590
+ "@stylistic/key-spacing": "off",
1591
+ "@stylistic/keyword-spacing": "off",
1592
+ "@stylistic/linebreak-style": "off",
1593
+ "@stylistic/max-statements-per-line": "off",
1594
+ "@stylistic/multiline-ternary": "off",
1595
+ "@stylistic/new-parens": "off",
1596
+ "@stylistic/newline-per-chained-call": "off",
1597
+ "@stylistic/no-extra-parens": "off",
1598
+ "@stylistic/no-extra-semi": "off",
1599
+ "@stylistic/no-floating-decimal": "off",
1600
+ "@stylistic/no-mixed-spaces-and-tabs": "off",
1601
+ "@stylistic/no-multi-spaces": "off",
1602
+ "@stylistic/no-multiple-empty-lines": "off",
1603
+ "@stylistic/no-trailing-spaces": "off",
1604
+ "@stylistic/no-whitespace-before-property": "off",
1605
+ "@stylistic/nonblock-statement-body-position": "off",
1606
+ "@stylistic/object-curly-newline": "off",
1607
+ "@stylistic/object-curly-spacing": "off",
1608
+ "@stylistic/object-property-newline": "off",
1609
+ "@stylistic/one-var-declaration-per-line": "off",
1610
+ "@stylistic/operator-linebreak": "off",
1611
+ "@stylistic/padded-blocks": "off",
1612
+ "@stylistic/quote-props": "off",
1613
+ "@stylistic/rest-spread-spacing": "off",
1614
+ "@stylistic/semi": "off",
1615
+ "@stylistic/semi-spacing": "off",
1616
+ "@stylistic/semi-style": "off",
1617
+ "@stylistic/space-before-blocks": "off",
1618
+ "@stylistic/space-before-function-paren": "off",
1619
+ "@stylistic/space-in-parens": "off",
1620
+ "@stylistic/space-infix-ops": "off",
1621
+ "@stylistic/space-unary-ops": "off",
1622
+ "@stylistic/switch-colon-spacing": "off",
1623
+ "@stylistic/template-curly-spacing": "off",
1624
+ "@stylistic/template-tag-spacing": "off",
1625
+ "@stylistic/wrap-iife": "off",
1626
+ "@stylistic/wrap-regex": "off",
1627
+ "@stylistic/yield-star-spacing": "off",
1628
+ "@stylistic/member-delimiter-style": "off",
1629
+ "@stylistic/type-annotation-spacing": "off",
1630
+ "@stylistic/jsx-child-element-spacing": "off",
1631
+ "@stylistic/jsx-closing-bracket-location": "off",
1632
+ "@stylistic/jsx-closing-tag-location": "off",
1633
+ "@stylistic/jsx-curly-newline": "off",
1634
+ "@stylistic/jsx-curly-spacing": "off",
1635
+ "@stylistic/jsx-equals-spacing": "off",
1636
+ "@stylistic/jsx-first-prop-new-line": "off",
1637
+ "@stylistic/jsx-indent": "off",
1638
+ "@stylistic/jsx-indent-props": "off",
1639
+ "@stylistic/jsx-max-props-per-line": "off",
1640
+ "@stylistic/jsx-newline": "off",
1641
+ "@stylistic/jsx-one-expression-per-line": "off",
1642
+ "@stylistic/jsx-props-no-multi-spaces": "off",
1643
+ "@stylistic/jsx-tag-spacing": "off",
1644
+ "@stylistic/jsx-wrap-multilines": "off",
1645
+ "@stylistic/indent-binary-ops": "off",
1646
+ "@stylistic/type-generic-spacing": "off",
1647
+ "@stylistic/type-named-tuple-spacing": "off",
1648
+ "@stylistic/js/array-bracket-newline": "off",
1649
+ "@stylistic/js/array-bracket-spacing": "off",
1650
+ "@stylistic/js/array-element-newline": "off",
1651
+ "@stylistic/js/arrow-parens": "off",
1652
+ "@stylistic/js/arrow-spacing": "off",
1653
+ "@stylistic/js/block-spacing": "off",
1654
+ "@stylistic/js/brace-style": "off",
1655
+ "@stylistic/js/comma-dangle": "off",
1656
+ "@stylistic/js/comma-spacing": "off",
1657
+ "@stylistic/js/comma-style": "off",
1658
+ "@stylistic/js/computed-property-spacing": "off",
1659
+ "@stylistic/js/dot-location": "off",
1660
+ "@stylistic/js/eol-last": "off",
1661
+ "@stylistic/js/func-call-spacing": "off",
1662
+ "@stylistic/js/function-call-argument-newline": "off",
1663
+ "@stylistic/js/function-call-spacing": "off",
1664
+ "@stylistic/js/function-paren-newline": "off",
1665
+ "@stylistic/js/generator-star-spacing": "off",
1666
+ "@stylistic/js/implicit-arrow-linebreak": "off",
1667
+ "@stylistic/js/indent": "off",
1668
+ "@stylistic/js/jsx-quotes": "off",
1669
+ "@stylistic/js/key-spacing": "off",
1670
+ "@stylistic/js/keyword-spacing": "off",
1671
+ "@stylistic/js/linebreak-style": "off",
1672
+ "@stylistic/js/max-statements-per-line": "off",
1673
+ "@stylistic/js/multiline-ternary": "off",
1674
+ "@stylistic/js/new-parens": "off",
1675
+ "@stylistic/js/newline-per-chained-call": "off",
1676
+ "@stylistic/js/no-extra-parens": "off",
1677
+ "@stylistic/js/no-extra-semi": "off",
1678
+ "@stylistic/js/no-floating-decimal": "off",
1679
+ "@stylistic/js/no-mixed-spaces-and-tabs": "off",
1680
+ "@stylistic/js/no-multi-spaces": "off",
1681
+ "@stylistic/js/no-multiple-empty-lines": "off",
1682
+ "@stylistic/js/no-trailing-spaces": "off",
1683
+ "@stylistic/js/no-whitespace-before-property": "off",
1684
+ "@stylistic/js/nonblock-statement-body-position": "off",
1685
+ "@stylistic/js/object-curly-newline": "off",
1686
+ "@stylistic/js/object-curly-spacing": "off",
1687
+ "@stylistic/js/object-property-newline": "off",
1688
+ "@stylistic/js/one-var-declaration-per-line": "off",
1689
+ "@stylistic/js/operator-linebreak": "off",
1690
+ "@stylistic/js/padded-blocks": "off",
1691
+ "@stylistic/js/quote-props": "off",
1692
+ "@stylistic/js/rest-spread-spacing": "off",
1693
+ "@stylistic/js/semi": "off",
1694
+ "@stylistic/js/semi-spacing": "off",
1695
+ "@stylistic/js/semi-style": "off",
1696
+ "@stylistic/js/space-before-blocks": "off",
1697
+ "@stylistic/js/space-before-function-paren": "off",
1698
+ "@stylistic/js/space-in-parens": "off",
1699
+ "@stylistic/js/space-infix-ops": "off",
1700
+ "@stylistic/js/space-unary-ops": "off",
1701
+ "@stylistic/js/switch-colon-spacing": "off",
1702
+ "@stylistic/js/template-curly-spacing": "off",
1703
+ "@stylistic/js/template-tag-spacing": "off",
1704
+ "@stylistic/js/wrap-iife": "off",
1705
+ "@stylistic/js/wrap-regex": "off",
1706
+ "@stylistic/js/yield-star-spacing": "off",
1707
+ "@stylistic/ts/block-spacing": "off",
1708
+ "@stylistic/ts/brace-style": "off",
1709
+ "@stylistic/ts/comma-dangle": "off",
1710
+ "@stylistic/ts/comma-spacing": "off",
1711
+ "@stylistic/ts/func-call-spacing": "off",
1712
+ "@stylistic/ts/function-call-spacing": "off",
1713
+ "@stylistic/ts/indent": "off",
1714
+ "@stylistic/ts/key-spacing": "off",
1715
+ "@stylistic/ts/keyword-spacing": "off",
1716
+ "@stylistic/ts/member-delimiter-style": "off",
1717
+ "@stylistic/ts/no-extra-parens": "off",
1718
+ "@stylistic/ts/no-extra-semi": "off",
1719
+ "@stylistic/ts/object-curly-spacing": "off",
1720
+ "@stylistic/ts/semi": "off",
1721
+ "@stylistic/ts/space-before-blocks": "off",
1722
+ "@stylistic/ts/space-before-function-paren": "off",
1723
+ "@stylistic/ts/space-infix-ops": "off",
1724
+ "@stylistic/ts/type-annotation-spacing": "off",
1725
+ "@stylistic/jsx/jsx-child-element-spacing": "off",
1726
+ "@stylistic/jsx/jsx-closing-bracket-location": "off",
1727
+ "@stylistic/jsx/jsx-closing-tag-location": "off",
1728
+ "@stylistic/jsx/jsx-curly-newline": "off",
1729
+ "@stylistic/jsx/jsx-curly-spacing": "off",
1730
+ "@stylistic/jsx/jsx-equals-spacing": "off",
1731
+ "@stylistic/jsx/jsx-first-prop-new-line": "off",
1732
+ "@stylistic/jsx/jsx-indent": "off",
1733
+ "@stylistic/jsx/jsx-indent-props": "off",
1734
+ "@stylistic/jsx/jsx-max-props-per-line": "off",
1735
+ "@typescript-eslint/block-spacing": "off",
1736
+ "@typescript-eslint/brace-style": "off",
1737
+ "@typescript-eslint/comma-dangle": "off",
1738
+ "@typescript-eslint/comma-spacing": "off",
1739
+ "@typescript-eslint/func-call-spacing": "off",
1740
+ "@typescript-eslint/indent": "off",
1741
+ "@typescript-eslint/key-spacing": "off",
1742
+ "@typescript-eslint/keyword-spacing": "off",
1743
+ "@typescript-eslint/member-delimiter-style": "off",
1744
+ "@typescript-eslint/no-extra-parens": "off",
1745
+ "@typescript-eslint/no-extra-semi": "off",
1746
+ "@typescript-eslint/object-curly-spacing": "off",
1747
+ "@typescript-eslint/semi": "off",
1748
+ "@typescript-eslint/space-before-blocks": "off",
1749
+ "@typescript-eslint/space-before-function-paren": "off",
1750
+ "@typescript-eslint/space-infix-ops": "off",
1751
+ "@typescript-eslint/type-annotation-spacing": "off",
1752
+ "babel/object-curly-spacing": "off",
1753
+ "babel/semi": "off",
1754
+ "flowtype/boolean-style": "off",
1755
+ "flowtype/delimiter-dangle": "off",
1756
+ "flowtype/generic-spacing": "off",
1757
+ "flowtype/object-type-curly-spacing": "off",
1758
+ "flowtype/object-type-delimiter": "off",
1759
+ "flowtype/quotes": "off",
1760
+ "flowtype/semi": "off",
1761
+ "flowtype/space-after-type-colon": "off",
1762
+ "flowtype/space-before-generic-bracket": "off",
1763
+ "flowtype/space-before-type-colon": "off",
1764
+ "flowtype/union-intersection-spacing": "off",
1765
+ "react/jsx-child-element-spacing": "off",
1766
+ "react/jsx-closing-bracket-location": "off",
1767
+ "react/jsx-closing-tag-location": "off",
1768
+ "react/jsx-curly-newline": "off",
1769
+ "react/jsx-curly-spacing": "off",
1770
+ "react/jsx-equals-spacing": "off",
1771
+ "react/jsx-first-prop-new-line": "off",
1772
+ "react/jsx-indent": "off",
1773
+ "react/jsx-indent-props": "off",
1774
+ "react/jsx-max-props-per-line": "off",
1775
+ "react/jsx-newline": "off",
1776
+ "react/jsx-one-expression-per-line": "off",
1777
+ "react/jsx-props-no-multi-spaces": "off",
1778
+ "react/jsx-tag-spacing": "off",
1779
+ "react/jsx-wrap-multilines": "off",
1780
+ "standard/array-bracket-even-spacing": "off",
1781
+ "standard/computed-property-even-spacing": "off",
1782
+ "standard/object-curly-even-spacing": "off",
1783
+ "unicorn/empty-brace-spaces": "off",
1784
+ "unicorn/no-nested-ternary": "off",
1785
+ "unicorn/number-literal-case": "off",
1786
+ "vue/array-bracket-newline": "off",
1787
+ "vue/array-bracket-spacing": "off",
1788
+ "vue/array-element-newline": "off",
1789
+ "vue/arrow-spacing": "off",
1790
+ "vue/block-spacing": "off",
1791
+ "vue/block-tag-newline": "off",
1792
+ "vue/brace-style": "off",
1793
+ "vue/comma-dangle": "off",
1794
+ "vue/comma-spacing": "off",
1795
+ "vue/comma-style": "off",
1796
+ "vue/dot-location": "off",
1797
+ "vue/func-call-spacing": "off",
1798
+ "vue/html-closing-bracket-newline": "off",
1799
+ "vue/html-closing-bracket-spacing": "off",
1800
+ "vue/html-end-tags": "off",
1801
+ "vue/html-indent": "off",
1802
+ "vue/html-quotes": "off",
1803
+ "vue/key-spacing": "off",
1804
+ "vue/keyword-spacing": "off",
1805
+ "vue/max-attributes-per-line": "off",
1806
+ "vue/multiline-html-element-content-newline": "off",
1807
+ "vue/multiline-ternary": "off",
1808
+ "vue/mustache-interpolation-spacing": "off",
1809
+ "vue/no-extra-parens": "off",
1810
+ "vue/no-multi-spaces": "off",
1811
+ "vue/no-spaces-around-equal-signs-in-attribute": "off",
1812
+ "vue/object-curly-newline": "off",
1813
+ "vue/object-curly-spacing": "off",
1814
+ "vue/object-property-newline": "off",
1815
+ "vue/operator-linebreak": "off",
1816
+ "vue/quote-props": "off",
1817
+ "vue/script-indent": "off",
1818
+ "vue/singleline-html-element-content-newline": "off",
1819
+ "vue/space-in-parens": "off",
1820
+ "vue/space-infix-ops": "off",
1821
+ "vue/space-unary-ops": "off",
1822
+ "vue/template-curly-spacing": "off",
1823
+ "space-unary-word-ops": "off",
1824
+ "generator-star": "off",
1825
+ "no-comma-dangle": "off",
1826
+ "no-reserved-keys": "off",
1827
+ "no-space-before-semi": "off",
1828
+ "no-wrap-func": "off",
1829
+ "space-after-function-name": "off",
1830
+ "space-before-function-parentheses": "off",
1831
+ "space-in-brackets": "off",
1832
+ "no-arrow-condition": "off",
1833
+ "space-after-keywords": "off",
1834
+ "space-before-keywords": "off",
1835
+ "space-return-throw-case": "off",
1836
+ "no-spaced-func": "off",
1837
+ "indent-legacy": "off",
1838
+ "array-bracket-newline": "off",
1839
+ "array-bracket-spacing": "off",
1840
+ "array-element-newline": "off",
1841
+ "arrow-parens": "off",
1842
+ "arrow-spacing": "off",
1843
+ "block-spacing": "off",
1844
+ "brace-style": "off",
1845
+ "comma-dangle": "off",
1846
+ "comma-spacing": "off",
1847
+ "comma-style": "off",
1848
+ "computed-property-spacing": "off",
1849
+ "dot-location": "off",
1850
+ "eol-last": "off",
1851
+ "func-call-spacing": "off",
1852
+ "function-call-argument-newline": "off",
1853
+ "function-paren-newline": "off",
1854
+ "generator-star-spacing": "off",
1855
+ "implicit-arrow-linebreak": "off",
1856
+ indent: "off",
1857
+ "jsx-quotes": "off",
1858
+ "key-spacing": "off",
1859
+ "keyword-spacing": "off",
1860
+ "linebreak-style": "off",
1861
+ "lines-around-comment": 0,
1862
+ "max-len": 0,
1863
+ "max-statements-per-line": "off",
1864
+ "multiline-ternary": "off",
1865
+ "new-parens": "off",
1866
+ "newline-per-chained-call": "off",
1867
+ "no-confusing-arrow": 0,
1868
+ "no-extra-parens": "off",
1869
+ "no-extra-semi": "off",
1870
+ "no-floating-decimal": "off",
1871
+ "no-mixed-operators": 0,
1872
+ "no-mixed-spaces-and-tabs": "off",
1873
+ "no-multi-spaces": "off",
1874
+ "no-multiple-empty-lines": "off",
1875
+ "no-tabs": 0,
1876
+ "no-trailing-spaces": "off",
1877
+ "no-whitespace-before-property": "off",
1878
+ "nonblock-statement-body-position": "off",
1879
+ "object-curly-newline": "off",
1880
+ "object-curly-spacing": "off",
1881
+ "object-property-newline": "off",
1882
+ "one-var-declaration-per-line": "off",
1883
+ "operator-linebreak": "off",
1884
+ "padded-blocks": "off",
1885
+ "quote-props": "off",
1886
+ quotes: 0,
1887
+ "rest-spread-spacing": "off",
1888
+ semi: "off",
1889
+ "semi-spacing": "off",
1890
+ "semi-style": "off",
1891
+ "space-before-blocks": "off",
1892
+ "space-before-function-paren": "off",
1893
+ "space-in-parens": "off",
1894
+ "space-infix-ops": "off",
1895
+ "space-unary-ops": "off",
1896
+ "switch-colon-spacing": "off",
1897
+ "template-curly-spacing": "off",
1898
+ "template-tag-spacing": "off",
1899
+ "wrap-iife": "off",
1900
+ "wrap-regex": "off",
1901
+ "yield-star-spacing": "off",
1902
+ "react/jsx-space-before-closing": "off",
1903
+ "prettier/prettier": "error",
1904
+ },
1905
+ },
1906
+ {
1907
+ plugins: {
1908
+ sonarjs: plugin0009,
1909
+ },
1910
+ rules: {
1911
+ "sonarjs/function-name": "off",
1912
+ "sonarjs/class-name": "off",
1913
+ "sonarjs/max-lines": "off",
1914
+ "sonarjs/no-tab": "off",
1915
+ "sonarjs/variable-name": "off",
1916
+ "sonarjs/comment-regex": "off",
1917
+ "sonarjs/no-commented-code": "off",
1918
+ "sonarjs/elseif-without-else": "off",
1919
+ "sonarjs/no-fallthrough": "error",
1920
+ "sonarjs/nested-control-flow": "off",
1921
+ "sonarjs/too-many-break-or-continue-in-loop": "off",
1922
+ "sonarjs/max-lines-per-function": "off",
1923
+ "sonarjs/no-nested-incdec": "off",
1924
+ "sonarjs/no-equals-in-for-termination": "error",
1925
+ "sonarjs/no-extra-arguments": "error",
1926
+ "sonarjs/no-collapsible-if": "off",
1927
+ "sonarjs/expression-complexity": "off",
1928
+ "sonarjs/no-redundant-parentheses": "off",
1929
+ "sonarjs/no-labels": "error",
1930
+ "sonarjs/no-nested-assignment": "off",
1931
+ "sonarjs/no-redundant-boolean": "error",
1932
+ "sonarjs/prefer-single-boolean-return": "error",
1933
+ "sonarjs/unused-import": "error",
1934
+ "sonarjs/fixme-tag": "off",
1935
+ "sonarjs/todo-tag": "warn",
1936
+ "sonarjs/useless-string-operation": "off",
1937
+ "sonarjs/no-unused-function-argument": "off",
1938
+ "sonarjs/no-duplicate-string": "off",
1939
+ "sonarjs/no-case-label-in-switch": "error",
1940
+ "sonarjs/no-parameter-reassignment": "error",
1941
+ "sonarjs/prefer-while": "error",
1942
+ "sonarjs/no-sonar-comments": "off",
1943
+ "sonarjs/no-small-switch": "error",
1944
+ "sonarjs/no-hardcoded-ip": "error",
1945
+ "sonarjs/label-position": "error",
1946
+ "sonarjs/public-static-readonly": "off",
1947
+ "sonarjs/file-header": "off",
1948
+ "sonarjs/call-argument-line": "error",
1949
+ "sonarjs/max-switch-cases": "error",
1950
+ "sonarjs/no-unused-vars": "off",
1951
+ "sonarjs/prefer-immediate-return": "off",
1952
+ "sonarjs/function-inside-loop": "error",
1953
+ "sonarjs/code-eval": "off",
1954
+ "sonarjs/no-variable-usage-before-declaration": "off",
1955
+ "sonarjs/future-reserved-words": "error",
1956
+ "sonarjs/array-constructor": "off",
1957
+ "sonarjs/bitwise-operators": "error",
1958
+ "sonarjs/no-function-declaration-in-block": "off",
1959
+ "sonarjs/no-primitive-wrappers": "error",
1960
+ "sonarjs/for-in": "off",
1961
+ "sonarjs/cyclomatic-complexity": "off",
1962
+ "sonarjs/no-skipped-tests": "off",
1963
+ "sonarjs/no-identical-expressions": "error",
1964
+ "sonarjs/no-nested-switch": "off",
1965
+ "sonarjs/constructor-for-side-effects": "off",
1966
+ "sonarjs/no-dead-store": "off",
1967
+ "sonarjs/no-identical-conditions": "error",
1968
+ "sonarjs/no-duplicated-branches": "error",
1969
+ "sonarjs/deprecation": "off",
1970
+ "sonarjs/no-inverted-boolean-check": "off",
1971
+ "sonarjs/misplaced-loop-counter": "error",
1972
+ "sonarjs/no-nested-functions": "off",
1973
+ "sonarjs/no-hardcoded-passwords": "off",
1974
+ "sonarjs/sql-queries": "error",
1975
+ "sonarjs/insecure-cookie": "error",
1976
+ "sonarjs/no-useless-increment": "error",
1977
+ "sonarjs/no-globals-shadowing": "off",
1978
+ "sonarjs/no-undefined-assignment": "off",
1979
+ "sonarjs/no-empty-test-file": "off",
1980
+ "sonarjs/no-ignored-return": "off",
1981
+ "sonarjs/no-wildcard-import": "off",
1982
+ "sonarjs/arguments-order": "off",
1983
+ "sonarjs/pseudo-random": "off",
1984
+ "sonarjs/for-loop-increment-sign": "error",
1985
+ "sonarjs/cookies": "off",
1986
+ "sonarjs/null-dereference": "error",
1987
+ "sonarjs/no-selector-parameter": "off",
1988
+ "sonarjs/updated-loop-counter": "error",
1989
+ "sonarjs/block-scoped-var": "error",
1990
+ "sonarjs/no-built-in-override": "off",
1991
+ "sonarjs/prefer-object-literal": "off",
1992
+ "sonarjs/no-ignored-exceptions": "off",
1993
+ "sonarjs/no-gratuitous-expressions": "error",
1994
+ "sonarjs/file-uploads": "error",
1995
+ "sonarjs/file-permissions": "error",
1996
+ "sonarjs/no-empty-character-class": "error",
1997
+ "sonarjs/no-unenclosed-multiline-block": "error",
1998
+ "sonarjs/index-of-compare-to-positive-number": "error",
1999
+ "sonarjs/assertions-in-tests": "off",
2000
+ "sonarjs/no-implicit-global": "off",
2001
+ "sonarjs/no-useless-catch": "error",
2002
+ "sonarjs/xml-parser-xxe": "error",
2003
+ "sonarjs/non-existent-operator": "error",
2004
+ "sonarjs/web-sql-database": "off",
2005
+ "sonarjs/post-message": "off",
2006
+ "sonarjs/no-array-delete": "error",
2007
+ "sonarjs/no-alphabetical-sort": "off",
2008
+ "sonarjs/no-incomplete-assertions": "error",
2009
+ "sonarjs/no-global-this": "error",
2010
+ "sonarjs/new-operator-misuse": "error",
2011
+ "sonarjs/no-delete-var": "error",
2012
+ "sonarjs/strings-comparison": "off",
2013
+ "sonarjs/file-name-differ-from-class": "off",
2014
+ "sonarjs/cookie-no-httponly": "error",
2015
+ "sonarjs/no-nested-conditional": "off",
2016
+ "sonarjs/no-incorrect-string-concat": "off",
2017
+ "sonarjs/different-types-comparison": "off",
2018
+ "sonarjs/inverted-assertion-arguments": "error",
2019
+ "sonarjs/shorthand-property-grouping": "off",
2020
+ "sonarjs/updated-const-var": "error",
2021
+ "sonarjs/arguments-usage": "off",
2022
+ "sonarjs/destructuring-assignment-syntax": "off",
2023
+ "sonarjs/no-invariant-returns": "off",
2024
+ "sonarjs/arrow-function-convention": "off",
2025
+ "sonarjs/class-prototype": "off",
2026
+ "sonarjs/generator-without-yield": "off",
2027
+ "sonarjs/no-require-or-define": "off",
2028
+ "sonarjs/no-associative-arrays": "error",
2029
+ "sonarjs/comma-or-logical-or-case": "error",
2030
+ "sonarjs/no-redundant-jump": "error",
2031
+ "sonarjs/inconsistent-function-call": "error",
2032
+ "sonarjs/no-use-of-empty-return-value": "error",
2033
+ "sonarjs/enforce-trailing-comma": "off",
2034
+ "sonarjs/void-use": "off",
2035
+ "sonarjs/operation-returning-nan": "off",
2036
+ "sonarjs/values-not-convertible-to-numbers": "off",
2037
+ "sonarjs/non-number-in-arithmetic-expression": "off",
2038
+ "sonarjs/cognitive-complexity": "warn",
2039
+ "sonarjs/argument-type": "off",
2040
+ "sonarjs/in-operator-type-error": "error",
2041
+ "sonarjs/array-callback-without-return": "off",
2042
+ "sonarjs/declarations-in-global-scope": "off",
2043
+ "sonarjs/function-return-type": "off",
2044
+ "sonarjs/no-inconsistent-returns": "off",
2045
+ "sonarjs/no-reference-error": "off",
2046
+ "sonarjs/super-invocation": "error",
2047
+ "sonarjs/no-all-duplicated-branches": "error",
2048
+ "sonarjs/no-same-line-conditional": "error",
2049
+ "sonarjs/conditional-indentation": "off",
2050
+ "sonarjs/no-collection-size-mischeck": "error",
2051
+ "sonarjs/no-unthrown-error": "error",
2052
+ "sonarjs/no-unused-collection": "error",
2053
+ "sonarjs/no-os-command-from-path": "off",
2054
+ "sonarjs/no-misleading-array-reverse": "off",
2055
+ "sonarjs/no-for-in-iterable": "off",
2056
+ "sonarjs/no-element-overwrite": "error",
2057
+ "sonarjs/no-identical-functions": "error",
2058
+ "sonarjs/no-empty-collection": "error",
2059
+ "sonarjs/no-redundant-assignments": "error",
2060
+ "sonarjs/prefer-type-guard": "error",
2061
+ "sonarjs/use-type-alias": "off",
2062
+ "sonarjs/no-return-type-any": "off",
2063
+ "sonarjs/no-implicit-dependencies": "off",
2064
+ "sonarjs/no-useless-intersection": "off",
2065
+ "sonarjs/weak-ssl": "error",
2066
+ "sonarjs/no-weak-keys": "error",
2067
+ "sonarjs/csrf": "error",
2068
+ "sonarjs/production-debug": "error",
2069
+ "sonarjs/prefer-default-last": "off",
2070
+ "sonarjs/no-in-misuse": "error",
2071
+ "sonarjs/no-duplicate-in-composite": "error",
2072
+ "sonarjs/max-union-size": "off",
2073
+ "sonarjs/no-undefined-argument": "off",
2074
+ "sonarjs/no-nested-template-literals": "error",
2075
+ "sonarjs/prefer-promise-shorthand": "off",
2076
+ "sonarjs/os-command": "off",
2077
+ "sonarjs/no-redundant-optional": "off",
2078
+ "sonarjs/regular-expr": "off",
2079
+ "sonarjs/encryption": "off",
2080
+ "sonarjs/hashing": "error",
2081
+ "sonarjs/bool-param-default": "off",
2082
+ "sonarjs/xpath": "off",
2083
+ "sonarjs/sockets": "off",
2084
+ "sonarjs/no-try-promise": "off",
2085
+ "sonarjs/process-argv": "off",
2086
+ "sonarjs/standard-input": "off",
2087
+ "sonarjs/unverified-certificate": "error",
2088
+ "sonarjs/no-unsafe-unzip": "off",
2089
+ "sonarjs/cors": "error",
2090
+ "sonarjs/link-with-target-blank": "off",
2091
+ "sonarjs/disabled-auto-escaping": "error",
2092
+ "sonarjs/table-header": "off",
2093
+ "sonarjs/no-table-as-layout": "error",
2094
+ "sonarjs/table-header-reference": "error",
2095
+ "sonarjs/object-alt-content": "error",
2096
+ "sonarjs/no-clear-text-protocols": "off",
2097
+ "sonarjs/publicly-writable-directories": "error",
2098
+ "sonarjs/unverified-hostname": "error",
2099
+ "sonarjs/encryption-secure-mode": "error",
2100
+ "sonarjs/no-weak-cipher": "error",
2101
+ "sonarjs/no-intrusive-permissions": "error",
2102
+ "sonarjs/insecure-jwt-token": "error",
2103
+ "sonarjs/x-powered-by": "error",
2104
+ "sonarjs/hidden-files": "error",
2105
+ "sonarjs/content-length": "error",
2106
+ "sonarjs/disabled-resource-integrity": "error",
2107
+ "sonarjs/content-security-policy": "error",
2108
+ "sonarjs/no-mixed-content": "error",
2109
+ "sonarjs/frame-ancestors": "error",
2110
+ "sonarjs/no-mime-sniff": "error",
2111
+ "sonarjs/no-referrer-policy": "error",
2112
+ "sonarjs/strict-transport-security": "error",
2113
+ "sonarjs/certificate-transparency": "off",
2114
+ "sonarjs/dns-prefetching": "off",
2115
+ "sonarjs/confidential-information-logging": "error",
2116
+ "sonarjs/no-ip-forward": "error",
2117
+ "sonarjs/empty-string-repetition": "off",
2118
+ "sonarjs/regex-complexity": "off",
2119
+ "sonarjs/anchor-precedence": "off",
2120
+ "sonarjs/slow-regex": "off",
2121
+ "sonarjs/no-invalid-regexp": "error",
2122
+ "sonarjs/unused-named-groups": "error",
2123
+ "sonarjs/no-same-argument-assert": "error",
2124
+ "sonarjs/unicode-aware-regex": "off",
2125
+ "sonarjs/no-misleading-character-class": "error",
2126
+ "sonarjs/duplicates-in-character-class": "off",
2127
+ "sonarjs/session-regeneration": "error",
2128
+ "sonarjs/test-check-exception": "error",
2129
+ "sonarjs/stable-tests": "error",
2130
+ "sonarjs/no-empty-after-reluctant": "error",
2131
+ "sonarjs/single-character-alternation": "off",
2132
+ "sonarjs/no-code-after-done": "error",
2133
+ "sonarjs/disabled-timeout": "error",
2134
+ "sonarjs/chai-determinate-assertion": "error",
2135
+ "sonarjs/aws-s3-bucket-server-encryption": "off",
2136
+ "sonarjs/aws-s3-bucket-insecure-http": "error",
2137
+ "sonarjs/aws-s3-bucket-versioning": "error",
2138
+ "sonarjs/aws-s3-bucket-granted-access": "error",
2139
+ "sonarjs/no-angular-bypass-sanitization": "error",
2140
+ "sonarjs/aws-iam-public-access": "error",
2141
+ "sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
2142
+ "sonarjs/aws-s3-bucket-public-access": "error",
2143
+ "sonarjs/no-vue-bypass-sanitization": "off",
2144
+ "sonarjs/aws-iam-all-privileges": "error",
2145
+ "sonarjs/aws-rds-unencrypted-databases": "error",
2146
+ "sonarjs/aws-iam-all-resources-accessible": "off",
2147
+ "sonarjs/aws-opensearchservice-domain": "error",
2148
+ "sonarjs/aws-iam-privilege-escalation": "error",
2149
+ "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
2150
+ "sonarjs/aws-restricted-ip-admin-access": "error",
2151
+ "sonarjs/no-empty-alternatives": "error",
2152
+ "sonarjs/no-control-regex": "off",
2153
+ "sonarjs/no-regex-spaces": "error",
2154
+ "sonarjs/aws-sns-unencrypted-topics": "error",
2155
+ "sonarjs/existing-groups": "error",
2156
+ "sonarjs/aws-ec2-rds-dms-public": "error",
2157
+ "sonarjs/aws-sqs-unencrypted-queue": "error",
2158
+ "sonarjs/no-empty-group": "error",
2159
+ "sonarjs/aws-efs-unencrypted": "error",
2160
+ "sonarjs/aws-apigateway-public-api": "error",
2161
+ "sonarjs/stateful-regex": "error",
2162
+ "sonarjs/concise-regex": "off",
2163
+ "sonarjs/single-char-in-character-classes": "error",
2164
+ "sonarjs/no-hardcoded-secrets": "off",
2165
+ "sonarjs/no-exclusive-tests": "error",
2166
+ "sonarjs/hardcoded-secret-signatures": "error",
2167
+ "sonarjs/jsx-no-leaked-render": "error",
2168
+ "sonarjs/no-hook-setter-in-body": "error",
2169
+ "sonarjs/no-useless-react-setstate": "off",
2170
+ "sonarjs/no-uniq-key": "error",
2171
+ "sonarjs/redundant-type-aliases": "off",
2172
+ "sonarjs/prefer-regexp-exec": "off",
2173
+ "sonarjs/no-internal-api-use": "error",
2174
+ "sonarjs/prefer-read-only-props": "off",
2175
+ "sonarjs/no-literal-call": "error",
2176
+ "sonarjs/reduce-initial-value": "off",
2177
+ "sonarjs/no-async-constructor": "off",
2178
+ "sonarjs/review-blockchain-mnemonic": "error",
2179
+ "sonarjs/dynamically-constructed-templates": "error",
2180
+ },
2181
+ },
2182
+ {
2183
+ files: [
2184
+ "*.test.ts",
2185
+ "*.test.tsx",
2186
+ "*.spec.ts",
2187
+ ],
2188
+ rules: {
2189
+ "sonarjs/no-identical-functions": "off",
2190
+ },
2191
+ },
2192
+ {
2193
+ rules: {
2194
+ "no-caller": 2,
2195
+ "no-eval": 2,
2196
+ "no-delete-var": 2,
2197
+ "no-octal-escape": 2,
2198
+ },
2199
+ },
2200
+ {
2201
+ ignores: [
2202
+ "**/dist/**/*.*",
2203
+ "**/esm/**/*.*",
2204
+ ],
2205
+ },
2206
+ ];