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