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