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