@gooddata/eslint-config 11.19.0-alpha.1 → 11.19.0-alpha.3

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 (58) hide show
  1. package/PACKAGES_V8.md +26 -26
  2. package/PACKAGES_V9.md +29 -27
  3. package/dist/base.js +36 -412
  4. package/dist/base.json +30 -8
  5. package/dist/browser-esm.js +405 -414
  6. package/dist/browser-esm.json +32 -9
  7. package/dist/browser.js +403 -412
  8. package/dist/browser.json +32 -9
  9. package/dist/esm-react-cypress.js +413 -422
  10. package/dist/esm-react-cypress.json +30 -8
  11. package/dist/esm-react-vitest-storybook.js +413 -422
  12. package/dist/esm-react-vitest-storybook.json +30 -8
  13. package/dist/esm-react-vitest.js +411 -420
  14. package/dist/esm-react-vitest.json +30 -8
  15. package/dist/esm-react.js +409 -418
  16. package/dist/esm-react.json +30 -8
  17. package/dist/esm-vitest.js +407 -416
  18. package/dist/esm-vitest.json +32 -9
  19. package/dist/esm.js +405 -414
  20. package/dist/esm.json +32 -9
  21. package/dist/oxfmt-browser-esm.d.ts +12 -0
  22. package/dist/oxfmt-browser-esm.js +1859 -0
  23. package/dist/oxfmt-browser.d.ts +12 -0
  24. package/dist/oxfmt-browser.js +1844 -0
  25. package/dist/oxfmt-esm-react-cypress.d.ts +12 -0
  26. package/dist/oxfmt-esm-react-cypress.js +1942 -0
  27. package/dist/oxfmt-esm-react-vitest-storybook.d.ts +12 -0
  28. package/dist/oxfmt-esm-react-vitest-storybook.js +1964 -0
  29. package/dist/oxfmt-esm-react-vitest.d.ts +12 -0
  30. package/dist/oxfmt-esm-react-vitest.js +1930 -0
  31. package/dist/oxfmt-esm-react.d.ts +12 -0
  32. package/dist/oxfmt-esm-react.js +1905 -0
  33. package/dist/oxfmt-esm-vitest.d.ts +12 -0
  34. package/dist/oxfmt-esm-vitest.js +1879 -0
  35. package/dist/oxfmt-esm.d.ts +12 -0
  36. package/dist/oxfmt-esm.js +1854 -0
  37. package/dist/oxfmt-react-cypress.d.ts +12 -0
  38. package/dist/oxfmt-react-cypress.js +1933 -0
  39. package/dist/oxfmt-react-vitest.d.ts +12 -0
  40. package/dist/oxfmt-react-vitest.js +1921 -0
  41. package/dist/oxfmt-react.d.ts +12 -0
  42. package/dist/oxfmt-react.js +1896 -0
  43. package/dist/oxfmt-vitest.d.ts +12 -0
  44. package/dist/oxfmt-vitest.js +2231 -0
  45. package/dist/oxfmt.d.ts +12 -0
  46. package/dist/oxfmt.js +1839 -0
  47. package/dist/prettier.d.ts +12 -0
  48. package/dist/prettier.js +2197 -0
  49. package/dist/prettier.json +1451 -0
  50. package/dist/react-cypress.js +411 -420
  51. package/dist/react-cypress.json +30 -8
  52. package/dist/react-vitest.js +409 -418
  53. package/dist/react-vitest.json +30 -8
  54. package/dist/react.js +407 -416
  55. package/dist/react.json +30 -8
  56. package/dist/vitest.js +771 -414
  57. package/dist/vitest.json +33 -9
  58. package/package.json +49 -7
@@ -0,0 +1,1854 @@
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-x";
9
+ import plugin0006 from "eslint-plugin-jsdoc";
10
+ import plugin0007 from "eslint-plugin-no-only-tests";
11
+ import plugin0008 from "eslint-plugin-sonarjs";
12
+ import plugin0009 from "eslint-plugin-import-esm";
13
+ import plugin0010 from "eslint-plugin-oxfmt";
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-x": plugin0005,
1395
+ },
1396
+ settings: {
1397
+ "import-x/extensions": [
1398
+ ".js",
1399
+ ".jsx",
1400
+ ".mjs",
1401
+ ".cjs",
1402
+ ],
1403
+ },
1404
+ rules: {
1405
+ "import-x/no-unresolved": "error",
1406
+ "import-x/named": "error",
1407
+ "import-x/namespace": "error",
1408
+ "import-x/default": "error",
1409
+ "import-x/export": "error",
1410
+ "import-x/no-named-as-default": "warn",
1411
+ "import-x/no-named-as-default-member": "warn",
1412
+ "import-x/no-duplicates": "warn",
1413
+ "import-x/order": [
1414
+ "error",
1415
+ {
1416
+ pathGroups: [
1417
+ {
1418
+ pattern: "react",
1419
+ group: "external",
1420
+ position: "before",
1421
+ },
1422
+ {
1423
+ pattern: "@gooddata/**",
1424
+ group: "external",
1425
+ position: "after",
1426
+ },
1427
+ ],
1428
+ groups: [
1429
+ "builtin",
1430
+ "external",
1431
+ "internal",
1432
+ [
1433
+ "parent",
1434
+ "sibling",
1435
+ "index",
1436
+ ],
1437
+ ],
1438
+ pathGroupsExcludedImportTypes: [
1439
+ "react",
1440
+ ],
1441
+ alphabetize: {
1442
+ order: "asc",
1443
+ caseInsensitive: true,
1444
+ },
1445
+ "newlines-between": "always",
1446
+ },
1447
+ ],
1448
+ "import-x/no-unassigned-import": "error",
1449
+ },
1450
+ },
1451
+ {
1452
+ files: [
1453
+ "**/*.ts",
1454
+ "**/*.cts",
1455
+ "**/*.mts",
1456
+ "**/*.tsx",
1457
+ ],
1458
+ settings: {
1459
+ "import-x/extensions": [
1460
+ ".ts",
1461
+ ".cts",
1462
+ ".mts",
1463
+ ".tsx",
1464
+ ".js",
1465
+ ".jsx",
1466
+ ".mjs",
1467
+ ".cjs",
1468
+ ],
1469
+ "import-x/external-module-folders": [
1470
+ "node_modules",
1471
+ "node_modules/@types",
1472
+ ],
1473
+ "import-x/parsers": {
1474
+ "@typescript-eslint/parser": [
1475
+ ".ts",
1476
+ ".cts",
1477
+ ".mts",
1478
+ ".tsx",
1479
+ ],
1480
+ },
1481
+ "import-x/resolver": {
1482
+ typescript: {
1483
+ alwaysTryTypes: true,
1484
+ },
1485
+ },
1486
+ },
1487
+ rules: {
1488
+ "import-x/named": "off",
1489
+ },
1490
+ },
1491
+ {
1492
+ files: [
1493
+ "**/*.{js,cjs,mjs,jsx}",
1494
+ ],
1495
+ plugins: {
1496
+ jsdoc: plugin0006,
1497
+ },
1498
+ settings: {
1499
+ jsdoc: {
1500
+ mode: "jsdoc",
1501
+ },
1502
+ },
1503
+ rules: {
1504
+ "jsdoc/require-param": "error",
1505
+ },
1506
+ },
1507
+ {
1508
+ plugins: {
1509
+ "no-only-tests": plugin0007,
1510
+ },
1511
+ rules: {
1512
+ "no-only-tests/no-only-tests": [
1513
+ "error",
1514
+ {
1515
+ block: [
1516
+ "fixture",
1517
+ ],
1518
+ focus: [
1519
+ "only",
1520
+ ],
1521
+ },
1522
+ ],
1523
+ },
1524
+ },
1525
+ {
1526
+ plugins: {
1527
+ sonarjs: plugin0008,
1528
+ },
1529
+ rules: {
1530
+ "sonarjs/function-name": "off",
1531
+ "sonarjs/class-name": "off",
1532
+ "sonarjs/max-lines": "off",
1533
+ "sonarjs/no-tab": "off",
1534
+ "sonarjs/variable-name": "off",
1535
+ "sonarjs/comment-regex": "off",
1536
+ "sonarjs/no-commented-code": "off",
1537
+ "sonarjs/elseif-without-else": "off",
1538
+ "sonarjs/no-fallthrough": "error",
1539
+ "sonarjs/nested-control-flow": "off",
1540
+ "sonarjs/too-many-break-or-continue-in-loop": "off",
1541
+ "sonarjs/max-lines-per-function": "off",
1542
+ "sonarjs/no-nested-incdec": "off",
1543
+ "sonarjs/no-equals-in-for-termination": "error",
1544
+ "sonarjs/no-extra-arguments": "error",
1545
+ "sonarjs/no-collapsible-if": "off",
1546
+ "sonarjs/expression-complexity": "off",
1547
+ "sonarjs/no-redundant-parentheses": "off",
1548
+ "sonarjs/no-labels": "error",
1549
+ "sonarjs/no-nested-assignment": "off",
1550
+ "sonarjs/no-redundant-boolean": "error",
1551
+ "sonarjs/prefer-single-boolean-return": "error",
1552
+ "sonarjs/unused-import": "error",
1553
+ "sonarjs/fixme-tag": "off",
1554
+ "sonarjs/todo-tag": "warn",
1555
+ "sonarjs/useless-string-operation": "off",
1556
+ "sonarjs/no-unused-function-argument": "off",
1557
+ "sonarjs/no-duplicate-string": "off",
1558
+ "sonarjs/no-case-label-in-switch": "error",
1559
+ "sonarjs/no-parameter-reassignment": "error",
1560
+ "sonarjs/prefer-while": "error",
1561
+ "sonarjs/no-sonar-comments": "off",
1562
+ "sonarjs/no-small-switch": "error",
1563
+ "sonarjs/no-hardcoded-ip": "error",
1564
+ "sonarjs/label-position": "error",
1565
+ "sonarjs/public-static-readonly": "off",
1566
+ "sonarjs/file-header": "off",
1567
+ "sonarjs/call-argument-line": "error",
1568
+ "sonarjs/max-switch-cases": "error",
1569
+ "sonarjs/no-unused-vars": "off",
1570
+ "sonarjs/prefer-immediate-return": "off",
1571
+ "sonarjs/function-inside-loop": "error",
1572
+ "sonarjs/code-eval": "off",
1573
+ "sonarjs/no-variable-usage-before-declaration": "off",
1574
+ "sonarjs/future-reserved-words": "error",
1575
+ "sonarjs/array-constructor": "off",
1576
+ "sonarjs/bitwise-operators": "error",
1577
+ "sonarjs/no-function-declaration-in-block": "off",
1578
+ "sonarjs/no-primitive-wrappers": "error",
1579
+ "sonarjs/for-in": "off",
1580
+ "sonarjs/cyclomatic-complexity": "off",
1581
+ "sonarjs/no-skipped-tests": "off",
1582
+ "sonarjs/no-identical-expressions": "error",
1583
+ "sonarjs/no-nested-switch": "off",
1584
+ "sonarjs/constructor-for-side-effects": "off",
1585
+ "sonarjs/no-dead-store": "off",
1586
+ "sonarjs/no-identical-conditions": "error",
1587
+ "sonarjs/no-duplicated-branches": "error",
1588
+ "sonarjs/deprecation": "off",
1589
+ "sonarjs/no-inverted-boolean-check": "off",
1590
+ "sonarjs/misplaced-loop-counter": "error",
1591
+ "sonarjs/no-nested-functions": "off",
1592
+ "sonarjs/no-hardcoded-passwords": "off",
1593
+ "sonarjs/sql-queries": "error",
1594
+ "sonarjs/insecure-cookie": "error",
1595
+ "sonarjs/no-useless-increment": "error",
1596
+ "sonarjs/no-globals-shadowing": "off",
1597
+ "sonarjs/no-undefined-assignment": "off",
1598
+ "sonarjs/no-empty-test-file": "off",
1599
+ "sonarjs/no-ignored-return": "off",
1600
+ "sonarjs/no-wildcard-import": "off",
1601
+ "sonarjs/arguments-order": "off",
1602
+ "sonarjs/pseudo-random": "off",
1603
+ "sonarjs/for-loop-increment-sign": "error",
1604
+ "sonarjs/cookies": "off",
1605
+ "sonarjs/null-dereference": "error",
1606
+ "sonarjs/no-selector-parameter": "off",
1607
+ "sonarjs/updated-loop-counter": "error",
1608
+ "sonarjs/block-scoped-var": "error",
1609
+ "sonarjs/no-built-in-override": "off",
1610
+ "sonarjs/prefer-object-literal": "off",
1611
+ "sonarjs/no-ignored-exceptions": "off",
1612
+ "sonarjs/no-gratuitous-expressions": "error",
1613
+ "sonarjs/file-uploads": "error",
1614
+ "sonarjs/file-permissions": "error",
1615
+ "sonarjs/no-empty-character-class": "error",
1616
+ "sonarjs/no-unenclosed-multiline-block": "error",
1617
+ "sonarjs/index-of-compare-to-positive-number": "error",
1618
+ "sonarjs/assertions-in-tests": "off",
1619
+ "sonarjs/no-implicit-global": "off",
1620
+ "sonarjs/no-useless-catch": "error",
1621
+ "sonarjs/xml-parser-xxe": "error",
1622
+ "sonarjs/non-existent-operator": "error",
1623
+ "sonarjs/web-sql-database": "off",
1624
+ "sonarjs/post-message": "off",
1625
+ "sonarjs/no-array-delete": "error",
1626
+ "sonarjs/no-alphabetical-sort": "off",
1627
+ "sonarjs/no-incomplete-assertions": "error",
1628
+ "sonarjs/no-global-this": "error",
1629
+ "sonarjs/new-operator-misuse": "error",
1630
+ "sonarjs/no-delete-var": "error",
1631
+ "sonarjs/strings-comparison": "off",
1632
+ "sonarjs/file-name-differ-from-class": "off",
1633
+ "sonarjs/cookie-no-httponly": "error",
1634
+ "sonarjs/no-nested-conditional": "off",
1635
+ "sonarjs/no-incorrect-string-concat": "off",
1636
+ "sonarjs/different-types-comparison": "off",
1637
+ "sonarjs/inverted-assertion-arguments": "error",
1638
+ "sonarjs/shorthand-property-grouping": "off",
1639
+ "sonarjs/updated-const-var": "error",
1640
+ "sonarjs/arguments-usage": "off",
1641
+ "sonarjs/destructuring-assignment-syntax": "off",
1642
+ "sonarjs/no-invariant-returns": "off",
1643
+ "sonarjs/arrow-function-convention": "off",
1644
+ "sonarjs/class-prototype": "off",
1645
+ "sonarjs/generator-without-yield": "off",
1646
+ "sonarjs/no-require-or-define": "off",
1647
+ "sonarjs/no-associative-arrays": "error",
1648
+ "sonarjs/comma-or-logical-or-case": "error",
1649
+ "sonarjs/no-redundant-jump": "error",
1650
+ "sonarjs/inconsistent-function-call": "error",
1651
+ "sonarjs/no-use-of-empty-return-value": "error",
1652
+ "sonarjs/enforce-trailing-comma": "off",
1653
+ "sonarjs/void-use": "off",
1654
+ "sonarjs/operation-returning-nan": "off",
1655
+ "sonarjs/values-not-convertible-to-numbers": "off",
1656
+ "sonarjs/non-number-in-arithmetic-expression": "off",
1657
+ "sonarjs/cognitive-complexity": "warn",
1658
+ "sonarjs/argument-type": "off",
1659
+ "sonarjs/in-operator-type-error": "error",
1660
+ "sonarjs/array-callback-without-return": "off",
1661
+ "sonarjs/declarations-in-global-scope": "off",
1662
+ "sonarjs/function-return-type": "off",
1663
+ "sonarjs/no-inconsistent-returns": "off",
1664
+ "sonarjs/no-reference-error": "off",
1665
+ "sonarjs/super-invocation": "error",
1666
+ "sonarjs/no-all-duplicated-branches": "error",
1667
+ "sonarjs/no-same-line-conditional": "error",
1668
+ "sonarjs/conditional-indentation": "off",
1669
+ "sonarjs/no-collection-size-mischeck": "error",
1670
+ "sonarjs/no-unthrown-error": "error",
1671
+ "sonarjs/no-unused-collection": "error",
1672
+ "sonarjs/no-os-command-from-path": "off",
1673
+ "sonarjs/no-misleading-array-reverse": "off",
1674
+ "sonarjs/no-for-in-iterable": "off",
1675
+ "sonarjs/no-element-overwrite": "error",
1676
+ "sonarjs/no-identical-functions": "error",
1677
+ "sonarjs/no-empty-collection": "error",
1678
+ "sonarjs/no-redundant-assignments": "error",
1679
+ "sonarjs/prefer-type-guard": "error",
1680
+ "sonarjs/use-type-alias": "off",
1681
+ "sonarjs/no-return-type-any": "off",
1682
+ "sonarjs/no-implicit-dependencies": "off",
1683
+ "sonarjs/no-useless-intersection": "off",
1684
+ "sonarjs/weak-ssl": "error",
1685
+ "sonarjs/no-weak-keys": "error",
1686
+ "sonarjs/csrf": "error",
1687
+ "sonarjs/production-debug": "error",
1688
+ "sonarjs/prefer-default-last": "off",
1689
+ "sonarjs/no-in-misuse": "error",
1690
+ "sonarjs/no-duplicate-in-composite": "error",
1691
+ "sonarjs/max-union-size": "off",
1692
+ "sonarjs/no-undefined-argument": "off",
1693
+ "sonarjs/no-nested-template-literals": "error",
1694
+ "sonarjs/prefer-promise-shorthand": "off",
1695
+ "sonarjs/os-command": "off",
1696
+ "sonarjs/no-redundant-optional": "off",
1697
+ "sonarjs/regular-expr": "off",
1698
+ "sonarjs/encryption": "off",
1699
+ "sonarjs/hashing": "error",
1700
+ "sonarjs/bool-param-default": "off",
1701
+ "sonarjs/xpath": "off",
1702
+ "sonarjs/sockets": "off",
1703
+ "sonarjs/no-try-promise": "off",
1704
+ "sonarjs/process-argv": "off",
1705
+ "sonarjs/standard-input": "off",
1706
+ "sonarjs/unverified-certificate": "error",
1707
+ "sonarjs/no-unsafe-unzip": "off",
1708
+ "sonarjs/cors": "error",
1709
+ "sonarjs/link-with-target-blank": "off",
1710
+ "sonarjs/disabled-auto-escaping": "error",
1711
+ "sonarjs/table-header": "off",
1712
+ "sonarjs/no-table-as-layout": "error",
1713
+ "sonarjs/table-header-reference": "error",
1714
+ "sonarjs/object-alt-content": "error",
1715
+ "sonarjs/no-clear-text-protocols": "off",
1716
+ "sonarjs/publicly-writable-directories": "error",
1717
+ "sonarjs/unverified-hostname": "error",
1718
+ "sonarjs/encryption-secure-mode": "error",
1719
+ "sonarjs/no-weak-cipher": "error",
1720
+ "sonarjs/no-intrusive-permissions": "error",
1721
+ "sonarjs/insecure-jwt-token": "error",
1722
+ "sonarjs/x-powered-by": "error",
1723
+ "sonarjs/hidden-files": "error",
1724
+ "sonarjs/content-length": "error",
1725
+ "sonarjs/disabled-resource-integrity": "error",
1726
+ "sonarjs/content-security-policy": "error",
1727
+ "sonarjs/no-mixed-content": "error",
1728
+ "sonarjs/frame-ancestors": "error",
1729
+ "sonarjs/no-mime-sniff": "error",
1730
+ "sonarjs/no-referrer-policy": "error",
1731
+ "sonarjs/strict-transport-security": "error",
1732
+ "sonarjs/certificate-transparency": "off",
1733
+ "sonarjs/dns-prefetching": "off",
1734
+ "sonarjs/confidential-information-logging": "error",
1735
+ "sonarjs/no-ip-forward": "error",
1736
+ "sonarjs/empty-string-repetition": "off",
1737
+ "sonarjs/regex-complexity": "off",
1738
+ "sonarjs/anchor-precedence": "off",
1739
+ "sonarjs/slow-regex": "off",
1740
+ "sonarjs/no-invalid-regexp": "error",
1741
+ "sonarjs/unused-named-groups": "error",
1742
+ "sonarjs/no-same-argument-assert": "error",
1743
+ "sonarjs/unicode-aware-regex": "off",
1744
+ "sonarjs/no-misleading-character-class": "error",
1745
+ "sonarjs/duplicates-in-character-class": "off",
1746
+ "sonarjs/session-regeneration": "error",
1747
+ "sonarjs/test-check-exception": "error",
1748
+ "sonarjs/stable-tests": "error",
1749
+ "sonarjs/no-empty-after-reluctant": "error",
1750
+ "sonarjs/single-character-alternation": "off",
1751
+ "sonarjs/no-code-after-done": "error",
1752
+ "sonarjs/disabled-timeout": "error",
1753
+ "sonarjs/chai-determinate-assertion": "error",
1754
+ "sonarjs/aws-s3-bucket-server-encryption": "off",
1755
+ "sonarjs/aws-s3-bucket-insecure-http": "error",
1756
+ "sonarjs/aws-s3-bucket-versioning": "error",
1757
+ "sonarjs/aws-s3-bucket-granted-access": "error",
1758
+ "sonarjs/no-angular-bypass-sanitization": "error",
1759
+ "sonarjs/aws-iam-public-access": "error",
1760
+ "sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
1761
+ "sonarjs/aws-s3-bucket-public-access": "error",
1762
+ "sonarjs/no-vue-bypass-sanitization": "off",
1763
+ "sonarjs/aws-iam-all-privileges": "error",
1764
+ "sonarjs/aws-rds-unencrypted-databases": "error",
1765
+ "sonarjs/aws-iam-all-resources-accessible": "off",
1766
+ "sonarjs/aws-opensearchservice-domain": "error",
1767
+ "sonarjs/aws-iam-privilege-escalation": "error",
1768
+ "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
1769
+ "sonarjs/aws-restricted-ip-admin-access": "error",
1770
+ "sonarjs/no-empty-alternatives": "error",
1771
+ "sonarjs/no-control-regex": "off",
1772
+ "sonarjs/no-regex-spaces": "error",
1773
+ "sonarjs/aws-sns-unencrypted-topics": "error",
1774
+ "sonarjs/existing-groups": "error",
1775
+ "sonarjs/aws-ec2-rds-dms-public": "error",
1776
+ "sonarjs/aws-sqs-unencrypted-queue": "error",
1777
+ "sonarjs/no-empty-group": "error",
1778
+ "sonarjs/aws-efs-unencrypted": "error",
1779
+ "sonarjs/aws-apigateway-public-api": "error",
1780
+ "sonarjs/stateful-regex": "error",
1781
+ "sonarjs/concise-regex": "off",
1782
+ "sonarjs/single-char-in-character-classes": "error",
1783
+ "sonarjs/no-hardcoded-secrets": "off",
1784
+ "sonarjs/no-exclusive-tests": "error",
1785
+ "sonarjs/hardcoded-secret-signatures": "error",
1786
+ "sonarjs/jsx-no-leaked-render": "error",
1787
+ "sonarjs/no-hook-setter-in-body": "error",
1788
+ "sonarjs/no-useless-react-setstate": "off",
1789
+ "sonarjs/no-uniq-key": "error",
1790
+ "sonarjs/redundant-type-aliases": "off",
1791
+ "sonarjs/prefer-regexp-exec": "off",
1792
+ "sonarjs/no-internal-api-use": "error",
1793
+ "sonarjs/prefer-read-only-props": "off",
1794
+ "sonarjs/no-literal-call": "error",
1795
+ "sonarjs/reduce-initial-value": "off",
1796
+ "sonarjs/no-async-constructor": "off",
1797
+ "sonarjs/review-blockchain-mnemonic": "error",
1798
+ "sonarjs/dynamically-constructed-templates": "error",
1799
+ },
1800
+ },
1801
+ {
1802
+ files: [
1803
+ "*.test.ts",
1804
+ "*.test.tsx",
1805
+ "*.spec.ts",
1806
+ ],
1807
+ rules: {
1808
+ "sonarjs/no-identical-functions": "off",
1809
+ },
1810
+ },
1811
+ {
1812
+ rules: {
1813
+ "no-caller": 2,
1814
+ "no-eval": 2,
1815
+ "no-delete-var": 2,
1816
+ "no-octal-escape": 2,
1817
+ },
1818
+ },
1819
+ {
1820
+ ignores: [
1821
+ "**/dist/**/*.*",
1822
+ "**/esm/**/*.*",
1823
+ "**/node_modules/**/*.*",
1824
+ "**/ci/results/**",
1825
+ "**/__version.ts",
1826
+ "**/cypress/results/**",
1827
+ "**/cypress/screenshots/**",
1828
+ "**/cypress/videos/**",
1829
+ "**/temp/**",
1830
+ ],
1831
+ },
1832
+ {
1833
+ languageOptions: {
1834
+ ecmaVersion: 2022,
1835
+ sourceType: "module",
1836
+ },
1837
+ },
1838
+ {
1839
+ plugins: {
1840
+ "import-esm": plugin0009,
1841
+ },
1842
+ rules: {
1843
+ "import-esm/explicit-extension": "error",
1844
+ },
1845
+ },
1846
+ {
1847
+ plugins: {
1848
+ oxfmt: plugin0010,
1849
+ },
1850
+ rules: {
1851
+ "oxfmt/oxfmt": "error",
1852
+ },
1853
+ },
1854
+ ];