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