@gooddata/eslint-config 11.26.0-alpha.0 → 11.26.0-alpha.2

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