@gooddata/eslint-config 11.19.0-alpha.0 → 11.19.0-alpha.10

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