Repository navigation
Expand file tree
/
Copy pathlint-output.txt
More file actions
1396 lines (906 loc) · 71.8 KB
/
Copy pathlint-output.txt
File metadata and controls
1396 lines (906 loc) · 71.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
./src/components/settings/panels/AboutSettings.tsx:48:16 lint/a11y/useValidAnchor ━━━━━━━━━━━━━━━━━━
× Provide a valid value for the attribute href.
46 │ <h3 class="settings-section-title">Legal</h3>
47 │ <div class="legal-links">
> 48 │ <a href="#" class="legal-link">
│ ^^^^^^^^
49 │ Privacy Policy
50 │ </a>
i The href attribute should be a valid a URL
i Check this thorough explanation to better understand the context.
./src/components/settings/panels/AboutSettings.tsx:51:16 lint/a11y/useValidAnchor ━━━━━━━━━━━━━━━━━━
× Provide a valid value for the attribute href.
49 │ Privacy Policy
50 │ </a>
> 51 │ <a href="#" class="legal-link">
│ ^^^^^^^^
52 │ Terms of Service
53 │ </a>
i The href attribute should be a valid a URL
i Check this thorough explanation to better understand the context.
./src/components/settings/panels/AboutSettings.tsx:54:16 lint/a11y/useValidAnchor ━━━━━━━━━━━━━━━━━━
× Provide a valid value for the attribute href.
52 │ Terms of Service
53 │ </a>
> 54 │ <a href="#" class="legal-link">
│ ^^^^^^^^
55 │ Open Source Licenses
56 │ </a>
i The href attribute should be a valid a URL
i Check this thorough explanation to better understand the context.
./src/components/settings/panels/HelpSettings.tsx:16:5 lint/suspicious/noConsole ━━━━━━━━━━━━━━━━━━━
! Don't use console.
14 │ const openDataDirectory = () => {
15 │ // This would open the app's data directory
> 16 │ console.log('Opening data directory...')
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 │ }
18 │
i The use of console is often reserved for debugging.
./src/components/settings/panels/HelpSettings.tsx:16:5 lint/suspicious/noConsoleLog ━━━━━━━━━━━━━━━━
i Don't use console.log
14 │ const openDataDirectory = () => {
15 │ // This would open the app's data directory
> 16 │ console.log('Opening data directory...')
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 │ }
18 │
i console.log is usually a tool for debugging and you don't want to have that in production.
i If it is not for debugging purpose then using console.info might be more appropriate.
./src/components/settings/panels/KeyboardSettings.tsx:32:15 lint/correctness/useJsxKeyInIterable ━━━━━━━━━━
× Missing key property for this element in iterable.
30 │ <div class="shortcuts-list">
31 │ {shortcuts.map((shortcut) => (
> 32 │ <div class="shortcut-row">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
33 │ <div class="shortcut-info">
34 │ <span class="shortcut-action">{shortcut.action}</span>
i The order of the items may change, and having a key can help React identify which item was moved.
i Check the React documentation.
./src/components/layout/HeaderBar.tsx:131:17 lint/a11y/useValidAnchor ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide a valid value for the attribute href.
129 │ <div class="absolute top-full right-0 mt-2 w-48 rounded-lg border border-subtle bg-elevated py-2 shadow-lg">
130 │ <a
> 131 │ href="#"
│ ^^^^^^^^
132 │ class="block px-4 py-2 text-secondary text-sm transition-colors hover:bg-hover hover:text-primary"
133 │ >
i The href attribute should be a valid a URL
i Check this thorough explanation to better understand the context.
./src/components/layout/HeaderBar.tsx:137:17 lint/a11y/useValidAnchor ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide a valid value for the attribute href.
135 │ </a>
136 │ <a
> 137 │ href="#"
│ ^^^^^^^^
138 │ class="block px-4 py-2 text-secondary text-sm transition-colors hover:bg-hover hover:text-primary"
139 │ >
i The href attribute should be a valid a URL
i Check this thorough explanation to better understand the context.
./src/components/layout/HeaderBar.tsx:144:17 lint/a11y/useValidAnchor ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide a valid value for the attribute href.
142 │ <div class="my-2 border-subtle border-t" />
143 │ <a
> 144 │ href="#"
│ ^^^^^^^^
145 │ class="block px-4 py-2 text-secondary text-sm transition-colors hover:bg-hover hover:text-primary"
146 │ >
i The href attribute should be a valid a URL
i Check this thorough explanation to better understand the context.
./src/components/layout/HeaderBar.tsx:50:11 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
48 │ {/* Quick Actions */}
49 │ <div class="ml-4 flex items-center gap-2">
> 50 │ <button class="rounded px-2 py-1 text-secondary text-xs transition-colors hover:bg-hover hover:text-primary">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 │ Resume
52 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/components/layout/HeaderBar.tsx:53:11 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
51 │ Resume
52 │ </button>
> 53 │ <button class="rounded px-2 py-1 text-secondary text-xs transition-colors hover:bg-hover hover:text-primary">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 │ Branch
55 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/components/layout/HeaderBar.tsx:56:11 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
54 │ Branch
55 │ </button>
> 56 │ <button class="rounded px-2 py-1 text-secondary text-xs transition-colors hover:bg-hover hover:text-primary">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 │ New Session
58 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/components/layout/HeaderBar.tsx:65:9 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
63 │ <div class="header-right">
64 │ {/* Command Palette Trigger */}
> 65 │ <button onClick={toggleCommandPalette} class="command-palette-trigger">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 │ <span>Search...</span>
67 │ <kbd class="kbd">⌘K</kbd>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/components/layout/HeaderBar.tsx:90:9 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
89 │ {/* Theme Toggle */}
> 90 │ <button
│ ^^^^^^^
> 91 │ onClick={toggleTheme}
> 92 │ class="rounded p-2 text-secondary transition-colors hover:bg-hover hover:text-primary"
> 93 │ title={`Switch to ${theme() === 'dark' ? 'light' : 'dark'} theme`}
> 94 │ >
│ ^
95 │ <Show
96 │ when={theme() === 'dark'}
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/components/layout/HeaderBar.tsx:121:11 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
119 │ {/* User Avatar/Menu */}
120 │ <div class="relative">
> 121 │ <button
│ ^^^^^^^
> 122 │ onClick={() => setUserMenuOpen(!userMenuOpen())}
> 123 │ class="flex h-8 w-8 items-center justify-center rounded-full bg-accent-primary font-medium text-sm text-white transition-opacity hover:opacity-90"
> 124 │ >
│ ^
125 │ U
126 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/components/settings/panels/UpdatesSettings.tsx:24:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━
× A form label must be associated with an input.
22 │ <div class="settings-row">
23 │ <div class="settings-row-content">
> 24 │ <label class="settings-label">Check for updates automatically</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 │ <p class="settings-description">
26 │ Automatically download and install updates when available.
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/components/settings/panels/UpdatesSettings.tsx:36:17 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
34 │ onChange={(e) => setAutoUpdate(e.currentTarget.checked)}
35 │ />
> 36 │ <span class="toggle-slider"></span>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 │ </label>
38 │ </div>
i Unsafe fix: Use a SelfClosingElement instead
34 34 │ onChange={(e) => setAutoUpdate(e.currentTarget.checked)}
35 35 │ />
36 │ - ················<span·class="toggle-slider"></span>
36 │ + ················<span·class="toggle-slider"·/>
37 37 │ </label>
38 38 │ </div>
./src/components/settings/panels/UpdatesSettings.tsx:43:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━
× A form label must be associated with an input.
41 │ <div class="settings-row">
42 │ <div class="settings-row-content">
> 43 │ <label class="settings-label">Update Channel</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 │ <p class="settings-description">Choose which updates to receive.</p>
45 │ </div>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/components/settings/panels/UpdatesSettings.tsx:64:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━
× A form label must be associated with an input.
62 │ <div class="settings-row">
63 │ <div class="settings-row-content">
> 64 │ <label class="settings-label">Check for updates now</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65 │ <p class="settings-description">Manually check for available updates.</p>
66 │ </div>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/components/settings/panels/UpdatesSettings.tsx:9:5 lint/suspicious/noConsole ━━━━━━━━━━━━━━━━━
! Don't use console.
7 │ const checkForUpdates = () => {
8 │ // This would trigger the update check
> 9 │ console.log('Checking for updates...')
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 │ }
11 │
i The use of console is often reserved for debugging.
./src/components/settings/panels/UpdatesSettings.tsx:9:5 lint/suspicious/noConsoleLog ━━━━━━━━━━━━━━
i Don't use console.log
7 │ const checkForUpdates = () => {
8 │ // This would trigger the update check
> 9 │ console.log('Checking for updates...')
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10 │ }
11 │
i console.log is usually a tool for debugging and you don't want to have that in production.
i If it is not for debugging purpose then using console.info might be more appropriate.
./src/components/settings/panels/UpdatesSettings.tsx:68:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
66 │ </div>
67 │ <div class="settings-row-control">
> 68 │ <button class="btn-primary" onClick={checkForUpdates}>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 │ Check for Updates
70 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/layouts/ide-layout.tsx:19:7 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━━━━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
17 │ <div class="flex h-full items-center justify-center">
18 │ <div class="text-center">
> 19 │ <div class="mx-auto h-12 w-12 animate-spin rounded-full border-accent-primary border-b-2"></div>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 │ <p class="mt-4 text-secondary text-sm">Loading view...</p>
21 │ </div>
i Unsafe fix: Use a SelfClosingElement instead
17 17 │ <div class="flex h-full items-center justify-center">
18 18 │ <div class="text-center">
19 │ - ······<div·class="mx-auto·h-12·w-12·animate-spin·rounded-full·border-accent-primary·border-b-2"></div>
19 │ + ······<div·class="mx-auto·h-12·w-12·animate-spin·rounded-full·border-accent-primary·border-b-2"·/>
20 20 │ <p class="mt-4 text-secondary text-sm">Loading view...</p>
21 21 │ </div>
./src/components/common/CommandPalette.tsx:44:9 lint/suspicious/noConsole ━━━━━━━━━━━━━━━━━━━━━━━━━━
! Don't use console.
42 │ shortcut: '⌘N',
43 │ action: () => {
> 44 │ console.log('New file')
│ ^^^^^^^^^^^^^^^^^^^^^^^
45 │ toggleCommandPalette()
46 │ },
i The use of console is often reserved for debugging.
./src/components/common/CommandPalette.tsx:44:9 lint/suspicious/noConsoleLog ━━━━━━━━━━━━━━━━━━━━━━━
i Don't use console.log
42 │ shortcut: '⌘N',
43 │ action: () => {
> 44 │ console.log('New file')
│ ^^^^^^^^^^^^^^^^^^^^^^^
45 │ toggleCommandPalette()
46 │ },
i console.log is usually a tool for debugging and you don't want to have that in production.
i If it is not for debugging purpose then using console.info might be more appropriate.
./src/components/common/CommandPalette.tsx:54:9 lint/suspicious/noConsole ━━━━━━━━━━━━━━━━━━━━━━━━━━
! Don't use console.
52 │ shortcut: '⌘O',
53 │ action: () => {
> 54 │ console.log('Open file')
│ ^^^^^^^^^^^^^^^^^^^^^^^^
55 │ toggleCommandPalette()
56 │ },
i The use of console is often reserved for debugging.
./src/components/common/CommandPalette.tsx:54:9 lint/suspicious/noConsoleLog ━━━━━━━━━━━━━━━━━━━━━━━
i Don't use console.log
52 │ shortcut: '⌘O',
53 │ action: () => {
> 54 │ console.log('Open file')
│ ^^^^^^^^^^^^^^^^^^^^^^^^
55 │ toggleCommandPalette()
56 │ },
i console.log is usually a tool for debugging and you don't want to have that in production.
i If it is not for debugging purpose then using console.info might be more appropriate.
./src/components/common/CommandPalette.tsx:64:9 lint/suspicious/noConsole ━━━━━━━━━━━━━━━━━━━━━━━━━━
! Don't use console.
62 │ shortcut: '⌘S',
63 │ action: () => {
> 64 │ console.log('Save file')
│ ^^^^^^^^^^^^^^^^^^^^^^^^
65 │ toggleCommandPalette()
66 │ },
i The use of console is often reserved for debugging.
./src/components/common/CommandPalette.tsx:64:9 lint/suspicious/noConsoleLog ━━━━━━━━━━━━━━━━━━━━━━━
i Don't use console.log
62 │ shortcut: '⌘S',
63 │ action: () => {
> 64 │ console.log('Save file')
│ ^^^^^^^^^^^^^^^^^^^^^^^^
65 │ toggleCommandPalette()
66 │ },
i console.log is usually a tool for debugging and you don't want to have that in production.
i If it is not for debugging purpose then using console.info might be more appropriate.
./src/components/settings/panels/GeneralSettings.tsx:26:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━
× A form label must be associated with an input.
24 │ <div class="settings-row">
25 │ <div class="settings-row-content">
> 26 │ <label class="settings-label">Minimize to Tray Menu</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 │ <p class="settings-description">Minimize the application to the tray menu.</p>
28 │ </div>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/components/settings/panels/GeneralSettings.tsx:36:17 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
34 │ onChange={(e) => setMinimizeToTray(e.currentTarget.checked)}
35 │ />
> 36 │ <span class="toggle-slider"></span>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 │ </label>
38 │ </div>
i Unsafe fix: Use a SelfClosingElement instead
34 34 │ onChange={(e) => setMinimizeToTray(e.currentTarget.checked)}
35 35 │ />
36 │ - ················<span·class="toggle-slider"></span>
36 │ + ················<span·class="toggle-slider"·/>
37 37 │ </label>
38 38 │ </div>
./src/components/settings/panels/GeneralSettings.tsx:43:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━
× A form label must be associated with an input.
41 │ <div class="settings-row">
42 │ <div class="settings-row-content">
> 43 │ <label class="settings-label">Close to Tray Menu</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 │ <p class="settings-description">Close the application to the tray menu.</p>
45 │ </div>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/components/settings/panels/GeneralSettings.tsx:53:17 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
51 │ onChange={(e) => setCloseToTray(e.currentTarget.checked)}
52 │ />
> 53 │ <span class="toggle-slider"></span>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 │ </label>
55 │ </div>
i Unsafe fix: Use a SelfClosingElement instead
51 51 │ onChange={(e) => setCloseToTray(e.currentTarget.checked)}
52 52 │ />
53 │ - ················<span·class="toggle-slider"></span>
53 │ + ················<span·class="toggle-slider"·/>
54 54 │ </label>
55 55 │ </div>
./src/components/settings/panels/GeneralSettings.tsx:63:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━
× A form label must be associated with an input.
61 │ <div class="settings-row">
62 │ <div class="settings-row-content">
> 63 │ <label class="settings-label">Reset all settings to their default values.</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 │ <p class="settings-description">This action is not reversible.</p>
65 │ </div>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/components/settings/panels/GeneralSettings.tsx:10:7 lint/suspicious/noConsole ━━━━━━━━━━━━━━━━
! Don't use console.
8 │ if (confirm('Reset all settings to their default values?\nThis action is not reversible.')) {
9 │ // Reset logic would go here
> 10 │ console.log('Resetting settings...')
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 │ }
12 │ }
i The use of console is often reserved for debugging.
./src/components/settings/panels/GeneralSettings.tsx:10:7 lint/suspicious/noConsoleLog ━━━━━━━━━━━━━
i Don't use console.log
8 │ if (confirm('Reset all settings to their default values?\nThis action is not reversible.')) {
9 │ // Reset logic would go here
> 10 │ console.log('Resetting settings...')
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 │ }
12 │ }
i console.log is usually a tool for debugging and you don't want to have that in production.
i If it is not for debugging purpose then using console.info might be more appropriate.
./src/stores/ide.store.ts:8:11 lint/correctness/noUnusedVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! This interface is unused.
6 │ export type Theme = 'dark' | 'light'
7 │
> 8 │ interface IDEState {
│ ^^^^^^^^
9 │ activeView: ViewType
10 │ sidebarExpanded: boolean
i Unused variables usually are result of incomplete refactoring, typos and other source of bugs.
./src/views/HooksView.tsx:8:9 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
6 │ <div class="flex items-center justify-between border-subtle border-b p-4">
7 │ <h2 class="font-semibold text-lg text-primary">Hooks & Policies</h2>
> 8 │ <button class="rounded bg-accent-primary px-4 py-1.5 text-sm text-white hover:opacity-90">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 │ + Add Hook
10 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/HooksView.tsx:60:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
59 │ <div class="mt-6 border-subtle border-t pt-4">
> 60 │ <button class="mr-2 rounded border border-subtle px-3 py-1 text-secondary text-xs hover:bg-hover">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 │ Import
62 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/HooksView.tsx:63:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
61 │ Import
62 │ </button>
> 63 │ <button class="rounded border border-subtle px-3 py-1 text-secondary text-xs hover:bg-hover">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 │ Export
65 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/HooksView.tsx:114:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
112 │ <span>Enable Hook</span>
113 │ </label>
> 114 │ <button class="ml-auto rounded border border-subtle bg-elevated px-4 py-1.5 text-primary text-sm hover:bg-hover">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 │ Test
116 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/HooksView.tsx:117:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
115 │ Test
116 │ </button>
> 117 │ <button class="rounded bg-accent-primary px-4 py-1.5 text-sm text-white hover:opacity-90">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118 │ Save
119 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/AgentsView.tsx:80:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× A form label must be associated with an input.
78 │ <div class="p-6">
79 │ <div class="mb-6">
> 80 │ <label class="mb-2 block font-semibold text-primary text-sm">Name</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81 │ <input
82 │ type="text"
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/views/AgentsView.tsx:89:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× A form label must be associated with an input.
88 │ <div class="mb-6">
> 89 │ <label class="mb-2 block font-semibold text-primary text-sm">Description</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90 │ <input
91 │ type="text"
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/views/AgentsView.tsx:98:15 lint/a11y/noLabelWithoutControl ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× A form label must be associated with an input.
97 │ <div class="mb-6">
> 98 │ <label class="mb-2 block font-semibold text-primary text-sm">System Prompt</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
99 │ <textarea
100 │ class="w-full rounded border border-subtle bg-elevated px-3 py-2 font-mono text-primary text-sm"
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/views/AgentsView.tsx:8:9 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
6 │ <div class="flex items-center justify-between border-subtle border-b p-4">
7 │ <h2 class="font-semibold text-lg text-primary">Sub-Agents</h2>
> 8 │ <button class="rounded bg-accent-primary px-4 py-1.5 text-sm text-white hover:opacity-90">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 │ + Create Agent
10 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/AgentsView.tsx:67:13 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
65 │ {/* Tabs */}
66 │ <div class="flex border-subtle border-b">
> 67 │ <button class="border-accent-primary border-b-2 px-4 py-2 font-medium text-primary text-sm">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 │ Definition
69 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/AgentsView.tsx:70:13 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
68 │ Definition
69 │ </button>
> 70 │ <button class="px-4 py-2 font-medium text-secondary text-sm hover:text-primary">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 │ Permissions
72 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/AgentsView.tsx:73:13 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
71 │ Permissions
72 │ </button>
> 73 │ <button class="px-4 py-2 font-medium text-secondary text-sm hover:text-primary">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 │ Test
75 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/AgentsView.tsx:140:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
139 │ <div class="flex gap-2">
> 140 │ <button class="rounded bg-accent-primary px-4 py-1.5 text-sm text-white hover:opacity-90">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
141 │ Save
142 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/AgentsView.tsx:143:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
141 │ Save
142 │ </button>
> 143 │ <button class="rounded border border-subtle bg-elevated px-4 py-1.5 text-primary text-sm hover:bg-hover">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144 │ Test Run
145 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/AgentsView.tsx:146:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
144 │ Test Run
145 │ </button>
> 146 │ <button class="rounded border border-subtle bg-elevated px-4 py-1.5 text-primary text-sm hover:bg-hover">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
147 │ Export YAML
148 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/settings.tsx:21:19 lint/a11y/noLabelWithoutControl ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× A form label must be associated with an input.
19 │ <div class="flex items-center justify-between">
20 │ <div>
> 21 │ <label class="font-medium text-primary text-sm">Theme</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 │ <p class="mt-1 text-secondary text-xs">Choose your preferred color theme</p>
23 │ </div>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/views/settings.tsx:34:19 lint/a11y/noLabelWithoutControl ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× A form label must be associated with an input.
32 │ <div class="flex items-center justify-between">
33 │ <div>
> 34 │ <label class="font-medium text-primary text-sm">Font Size</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 │ <p class="mt-1 text-secondary text-xs">Adjust the editor font size</p>
36 │ </div>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/views/settings.tsx:80:17 lint/a11y/noLabelWithoutControl ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× A form label must be associated with an input.
78 │ <div class="space-y-4">
79 │ <div>
> 80 │ <label class="font-medium text-primary text-sm">API Key</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81 │ <input
82 │ type="password"
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/views/settings.tsx:89:17 lint/a11y/noLabelWithoutControl ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× A form label must be associated with an input.
88 │ <div>
> 89 │ <label class="font-medium text-primary text-sm">Model</label>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90 │ <select class="mt-2 w-full rounded border border-subtle bg-primary px-3 py-2 text-primary text-sm">
91 │ <option>Claude 3 Opus</option>
i Consider adding a `for` or `htmlFor` attribute to the label element or moving the input element to inside the label element.
./src/views/settings.tsx:24:17 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
22 │ <p class="mt-1 text-secondary text-xs">Choose your preferred color theme</p>
23 │ </div>
> 24 │ <button
│ ^^^^^^^
> 25 │ onClick={toggleTheme}
> 26 │ class="rounded border border-subtle bg-primary px-4 py-2 text-primary text-sm hover:bg-hover"
> 27 │ >
│ ^
28 │ {theme() === 'dark' ? 'Dark' : 'Light'} Mode
29 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/ChatView.tsx:13:17 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
11 │ <div class="ml-2 space-y-4 border-subtle border-l-2 pl-4">
12 │ <div class="relative">
> 13 │ <div class="-left-6 absolute h-3 w-3 rounded-full bg-accent-primary"></div>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 │ <div class="text-secondary text-xs">14:32</div>
15 │ <div class="text-primary text-sm">Read</div>
i Unsafe fix: Use a SelfClosingElement instead
11 11 │ <div class="ml-2 space-y-4 border-subtle border-l-2 pl-4">
12 12 │ <div class="relative">
13 │ - ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-primary"></div>
13 │ + ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-primary"·/>
14 14 │ <div class="text-secondary text-xs">14:32</div>
15 15 │ <div class="text-primary text-sm">Read</div>
./src/views/ChatView.tsx:19:17 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
17 │ </div>
18 │ <div class="relative">
> 19 │ <div class="-left-6 absolute h-3 w-3 rounded-full bg-accent-success"></div>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 │ <div class="text-secondary text-xs">14:33</div>
21 │ <div class="text-primary text-sm">Edit</div>
i Unsafe fix: Use a SelfClosingElement instead
17 17 │ </div>
18 18 │ <div class="relative">
19 │ - ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-success"></div>
19 │ + ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-success"·/>
20 20 │ <div class="text-secondary text-xs">14:33</div>
21 21 │ <div class="text-primary text-sm">Edit</div>
./src/views/ChatView.tsx:25:17 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
23 │ </div>
24 │ <div class="relative">
> 25 │ <div class="-left-6 absolute h-3 w-3 rounded-full bg-accent-warning"></div>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 │ <div class="text-secondary text-xs">14:33</div>
27 │ <div class="text-primary text-sm">Test</div>
i Unsafe fix: Use a SelfClosingElement instead
23 23 │ </div>
24 24 │ <div class="relative">
25 │ - ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-warning"></div>
25 │ + ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-warning"·/>
26 26 │ <div class="text-secondary text-xs">14:33</div>
27 27 │ <div class="text-primary text-sm">Test</div>
./src/views/ChatView.tsx:31:17 lint/style/useSelfClosingElements FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━
× JSX elements without children should be marked as self-closing. In JSX, it is valid for any element to be self-closing.
29 │ </div>
30 │ <div class="relative">
> 31 │ <div class="-left-6 absolute h-3 w-3 rounded-full bg-accent-info"></div>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 │ <div class="text-secondary text-xs">14:34</div>
33 │ <div class="text-primary text-sm">MCP Call</div>
i Unsafe fix: Use a SelfClosingElement instead
29 29 │ </div>
30 30 │ <div class="relative">
31 │ - ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-info"></div>
31 │ + ················<div·class="-left-6·absolute·h-3·w-3·rounded-full·bg-accent-info"·/>
32 32 │ <div class="text-secondary text-xs">14:34</div>
33 33 │ <div class="text-primary text-sm">MCP Call</div>
./src/views/ChatView.tsx:39:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Provide an explicit type prop for the button element.
38 │ <div class="mt-8 border-subtle border-t pt-4">
> 39 │ <button class="mr-2 rounded border border-subtle px-3 py-1 text-secondary text-xs hover:bg-hover">
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 │ Filter
41 │ </button>
i The default type of a button is submit, which causes the submission of a form when placed inside a `form` element. This is likely not the behaviour that you want inside a React application.
i Allowed button types are: submit, button or reset
./src/views/ChatView.tsx:42:15 lint/a11y/useButtonType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━