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