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