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