@gooddata/eslint-config 11.51.0-alpha.4 → 11.51.0

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