@orderly.network/eslint-config 2.5.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1136 -0
  2. package/index.mjs +164 -0
  3. package/package.json +27 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1136 @@
1
+ # @orderly.network/eslint-config
2
+
3
+ ## 2.5.0-alpha.2
4
+
5
+ ### Minor Changes
6
+
7
+ - publish
8
+
9
+ ## 2.5.0-alpha.1
10
+
11
+ ### Minor Changes
12
+
13
+ - publish
14
+
15
+ ## 1.4.2-alpha.0
16
+
17
+ ### Patch Changes
18
+
19
+ - publish
20
+
21
+ ## 1.4.1
22
+
23
+ ### Patch Changes
24
+
25
+ - publish
26
+ - 5a220e0: publish
27
+
28
+ ## 1.4.1-alpha.0
29
+
30
+ ### Patch Changes
31
+
32
+ - publish
33
+
34
+ ## 1.4.0
35
+
36
+ ### Minor Changes
37
+
38
+ - decb695: publish
39
+ - publish
40
+
41
+ ## 1.4.0-alpha.0
42
+
43
+ ### Minor Changes
44
+
45
+ - publish
46
+
47
+ ## 1.3.2
48
+
49
+ ### Patch Changes
50
+
51
+ - 311e2a7: publish
52
+ - publish
53
+
54
+ ## 1.3.2-alpha.0
55
+
56
+ ### Patch Changes
57
+
58
+ - publish
59
+
60
+ ## 1.3.1
61
+
62
+ ### Patch Changes
63
+
64
+ - b2ca83a: publish
65
+ - publish
66
+
67
+ ## 1.3.1-alpha.0
68
+
69
+ ### Patch Changes
70
+
71
+ - publish
72
+
73
+ ## 1.3.0
74
+
75
+ ### Minor Changes
76
+
77
+ - publish
78
+ - 4e5f109: publish
79
+
80
+ ## 1.3.0-alpha.0
81
+
82
+ ### Minor Changes
83
+
84
+ - publish
85
+
86
+ ## 1.2.0
87
+
88
+ ### Minor Changes
89
+
90
+ - e1badae: publish
91
+ - publish
92
+
93
+ ## 1.2.0-alpha.0
94
+
95
+ ### Minor Changes
96
+
97
+ - publish
98
+
99
+ ## 1.1.3
100
+
101
+ ### Patch Changes
102
+
103
+ - publish
104
+ - 5ba2a31a8: publish
105
+
106
+ ## 1.1.3-alpha.0
107
+
108
+ ### Patch Changes
109
+
110
+ - publish
111
+
112
+ ## 1.1.2
113
+
114
+ ### Patch Changes
115
+
116
+ - publish
117
+ - 7874fa6dd: publish
118
+
119
+ ## 1.1.2-alpha.0
120
+
121
+ ### Patch Changes
122
+
123
+ - publish
124
+
125
+ ## 1.1.1
126
+
127
+ ### Patch Changes
128
+
129
+ - publish
130
+ - 0b52044b6: publish
131
+
132
+ ## 1.1.1-alpha.0
133
+
134
+ ### Patch Changes
135
+
136
+ - publish
137
+
138
+ ## 1.1.0
139
+
140
+ ### Minor Changes
141
+
142
+ - publish
143
+
144
+ ### Patch Changes
145
+
146
+ - ba163f4ce: publish
147
+
148
+ ## 1.0.7-alpha.0
149
+
150
+ ### Patch Changes
151
+
152
+ - publish
153
+
154
+ ## 1.0.6
155
+
156
+ ### Patch Changes
157
+
158
+ - 423ab1d38: update
159
+
160
+ ## 1.0.6-alpha.0
161
+
162
+ ### Patch Changes
163
+
164
+ - update
165
+
166
+ ## 1.0.5
167
+
168
+ ### Patch Changes
169
+
170
+ - 74c2c433e: fix bugs
171
+
172
+ ## 1.0.5-alpha.0
173
+
174
+ ### Patch Changes
175
+
176
+ - fix bugs
177
+
178
+ ## 1.0.4
179
+
180
+ ### Patch Changes
181
+
182
+ - 7f737173b: update
183
+
184
+ ## 1.0.4-alpha.0
185
+
186
+ ### Patch Changes
187
+
188
+ - update
189
+
190
+ ## 1.0.3
191
+
192
+ ### Patch Changes
193
+
194
+ - cca30140b: fix ledger issues
195
+
196
+ ## 1.0.3-alpha.0
197
+
198
+ ### Patch Changes
199
+
200
+ - fix ledger issues
201
+
202
+ ## 1.0.2
203
+
204
+ ### Patch Changes
205
+
206
+ - a3becba1a: update
207
+
208
+ ## 1.0.2-alpha.0
209
+
210
+ ### Patch Changes
211
+
212
+ - update
213
+
214
+ ## 1.0.1
215
+
216
+ ### Patch Changes
217
+
218
+ - 0fd2e6038: add some features
219
+
220
+ ## 1.0.1-alpha.0
221
+
222
+ ### Patch Changes
223
+
224
+ - add some features
225
+
226
+ ## 1.0.0
227
+
228
+ ### Major Changes
229
+
230
+ - 113773f: integrate solana
231
+
232
+ ### Patch Changes
233
+
234
+ - b033ce0: test
235
+ - b15becb: test
236
+
237
+ ## 1.0.0-alpha.2
238
+
239
+ ### Patch Changes
240
+
241
+ - test
242
+
243
+ ## 1.0.0-alpha.1
244
+
245
+ ### Patch Changes
246
+
247
+ - test
248
+
249
+ ## 1.0.0-alpha.0
250
+
251
+ ### Major Changes
252
+
253
+ - integrate solana
254
+
255
+ ## 0.3.12
256
+
257
+ ### Patch Changes
258
+
259
+ - 11399d1f3: add element id;
260
+
261
+ ## 0.3.12-alpha.0
262
+
263
+ ### Patch Changes
264
+
265
+ - add element id;
266
+
267
+ ## 0.3.11
268
+
269
+ ### Patch Changes
270
+
271
+ - fix bugs;
272
+
273
+ ## 0.3.10
274
+
275
+ ### Patch Changes
276
+
277
+ - e5a88d5f3: add system maintenance component;
278
+
279
+ ## 0.3.10-alpha.0
280
+
281
+ ### Patch Changes
282
+
283
+ - add system maintenance component;
284
+
285
+ ## 0.3.9
286
+
287
+ ### Patch Changes
288
+
289
+ - 187dd07b: fix bugs;
290
+
291
+ ## 0.3.9-alpha.0
292
+
293
+ ### Patch Changes
294
+
295
+ - fix bugs;
296
+
297
+ ## 0.3.8
298
+
299
+ ### Patch Changes
300
+
301
+ - 48517528: fix bugs;
302
+
303
+ ## 0.3.8-alpha.0
304
+
305
+ ### Patch Changes
306
+
307
+ - fix bugs;
308
+
309
+ ## 0.3.7
310
+
311
+ ### Patch Changes
312
+
313
+ - 14b58ba3: fix bugs;
314
+
315
+ ## 0.3.7-alpha.0
316
+
317
+ ### Patch Changes
318
+
319
+ - fix bugs;
320
+
321
+ ## 0.3.6
322
+
323
+ ### Patch Changes
324
+
325
+ - 8a8f3bff: fix bug;
326
+
327
+ ## 0.3.6-alpha.0
328
+
329
+ ### Patch Changes
330
+
331
+ - fix bug;
332
+
333
+ ## 0.3.5
334
+
335
+ ### Patch Changes
336
+
337
+ - 68236fb3: fix bugs;
338
+
339
+ ## 0.3.5-alpha.0
340
+
341
+ ### Patch Changes
342
+
343
+ - fix bugs;
344
+
345
+ ## 0.3.4
346
+
347
+ ### Patch Changes
348
+
349
+ - e8bc10c4: add IDs;
350
+
351
+ ## 0.3.4-alpha.0
352
+
353
+ ### Patch Changes
354
+
355
+ - add IDs;
356
+
357
+ ## 0.3.3
358
+
359
+ ### Patch Changes
360
+
361
+ - 77c9c09b: fix bug;
362
+
363
+ ## 0.3.3-alpha.0
364
+
365
+ ### Patch Changes
366
+
367
+ - fix bug;
368
+
369
+ ## 0.3.2
370
+
371
+ ### Patch Changes
372
+
373
+ - f7bfae80: fix bug;
374
+
375
+ ## 0.3.2-alpha.0
376
+
377
+ ### Patch Changes
378
+
379
+ - fix bug;
380
+
381
+ ## 0.3.1
382
+
383
+ ### Patch Changes
384
+
385
+ - 34efc6c0: update
386
+
387
+ ## 0.3.1-alpha.0
388
+
389
+ ### Patch Changes
390
+
391
+ - update
392
+
393
+ ## 0.3.0
394
+
395
+ ### Minor Changes
396
+
397
+ - dd94bfa9: update
398
+
399
+ ### Patch Changes
400
+
401
+ - 6cb9c466: fix bug;
402
+
403
+ ## 0.3.0-alpha.1
404
+
405
+ ### Patch Changes
406
+
407
+ - fix bug;
408
+
409
+ ## 0.3.0-alpha.0
410
+
411
+ ### Minor Changes
412
+
413
+ - update
414
+
415
+ ## 0.2.5
416
+
417
+ ### Patch Changes
418
+
419
+ - fix bugs;
420
+
421
+ ## 0.2.4
422
+
423
+ ### Patch Changes
424
+
425
+ - fix bugs;
426
+
427
+ ## 0.2.3
428
+
429
+ ### Patch Changes
430
+
431
+ - fix bugs;
432
+
433
+ ## 0.2.2
434
+
435
+ ### Patch Changes
436
+
437
+ - fix bugs;
438
+
439
+ ## 0.2.1
440
+
441
+ ### Patch Changes
442
+
443
+ - fix bugs;
444
+
445
+ ## 0.2.0
446
+
447
+ ### Minor Changes
448
+
449
+ - fd452911: update;
450
+
451
+ ### Patch Changes
452
+
453
+ - e4edd4c7: publish referral
454
+ - fix bugs;
455
+
456
+ ## 0.2.0-alpha.0
457
+
458
+ ### Minor Changes
459
+
460
+ - update;
461
+
462
+ ## 0.1.8
463
+
464
+ ### Patch Changes
465
+
466
+ - fix bug: app crashes when symbolInfo is null;
467
+
468
+ ## 0.1.7
469
+
470
+ ### Patch Changes
471
+
472
+ - fix bug: window not defined;
473
+
474
+ ## 0.1.6
475
+
476
+ ### Patch Changes
477
+
478
+ - 93a5ce6a: fix bugs;
479
+
480
+ ## 0.1.6-alpha.0
481
+
482
+ ### Patch Changes
483
+
484
+ - fix bugs;
485
+
486
+ ## 0.1.5
487
+
488
+ ### Patch Changes
489
+
490
+ - 1c2f86c8: fix bugs
491
+ - 83a2465c: fix bugs
492
+ - 4b635449: fix bugs
493
+ - c5918eba: fix bugs
494
+ - 08849940: fix bugs
495
+ - 49e6b8a0: fix bugs
496
+ - c47192f5: fix bugs
497
+ - e62b8dea: fix bugs
498
+ - 165a7cd7: hide share PnL entry
499
+ - 32be91ac: fix bug
500
+ - 2e482e37: fix bugs
501
+
502
+ ## 0.1.5-internal.10
503
+
504
+ ### Patch Changes
505
+
506
+ - fix bugs
507
+
508
+ ## 0.1.5-internal.9
509
+
510
+ ### Patch Changes
511
+
512
+ - fix bugs
513
+
514
+ ## 0.1.5-internal.8
515
+
516
+ ### Patch Changes
517
+
518
+ - fix bugs
519
+
520
+ ## 0.1.5-internal.7
521
+
522
+ ### Patch Changes
523
+
524
+ - fix bugs
525
+
526
+ ## 0.1.5-internal.6
527
+
528
+ ### Patch Changes
529
+
530
+ - fix bugs
531
+
532
+ ## 0.1.5-internal.5
533
+
534
+ ### Patch Changes
535
+
536
+ - fix bugs
537
+
538
+ ## 0.1.5-internal.4
539
+
540
+ ### Patch Changes
541
+
542
+ - fix bugs
543
+
544
+ ## 0.1.5-internal.3
545
+
546
+ ### Patch Changes
547
+
548
+ - fix bug
549
+
550
+ ## 0.1.5-internal.2
551
+
552
+ ### Patch Changes
553
+
554
+ - fix bugs
555
+
556
+ ## 0.1.5-internal.1
557
+
558
+ ### Patch Changes
559
+
560
+ - hide share PnL entry
561
+
562
+ ## 0.1.5-internal.0
563
+
564
+ ### Patch Changes
565
+
566
+ - fix bugs
567
+
568
+ ## 0.1.4
569
+
570
+ ### Patch Changes
571
+
572
+ - 686fd454: fix bugs;
573
+ - 9bac5c5c: split cross-swap code;
574
+ - 410fe957: refactor hook;
575
+ - fix bugs;
576
+ - 410fe957: update
577
+
578
+ ## 0.1.4-experimental.3
579
+
580
+ ### Patch Changes
581
+
582
+ - fix bugs;
583
+
584
+ ## 0.1.4-experimental.2
585
+
586
+ ### Patch Changes
587
+
588
+ - refactor hook;
589
+
590
+ ## 0.1.4-experimental.1
591
+
592
+ ### Patch Changes
593
+
594
+ - update
595
+
596
+ ## 0.1.4-experimental.0
597
+
598
+ ### Patch Changes
599
+
600
+ - split cross-swap code;
601
+
602
+ ## 0.1.3
603
+
604
+ ### Patch Changes
605
+
606
+ - fix bug: liqPrice calculation error
607
+
608
+ ## 0.1.2
609
+
610
+ ### Patch Changes
611
+
612
+ - fix bugs;
613
+
614
+ ## 0.1.1
615
+
616
+ ### Patch Changes
617
+
618
+ - update orderStream hook;
619
+
620
+ ## 0.1.0
621
+
622
+ ### Minor Changes
623
+
624
+ - fix bugs & add stopOrder type
625
+
626
+ ### Patch Changes
627
+
628
+ - f7b91c28: update kline chart;
629
+ - fcffb8d6: update deposit fee
630
+ - fcffb8d6: fix bugs
631
+ - 972fe2d9: fix bugs;
632
+ - 56ae894d: fix orderEntry bugs; add stop order;
633
+ - 17edbb36: update useOrderEntry hook and OrderEntry component;
634
+ - fcffb8d6: fix bugs
635
+ - fcffb8d6: fix bugs
636
+ - acaf9269: fix bugs
637
+ - 5523faa3: fix bug
638
+ - 0e950213: fix bugs;
639
+ - fcffb8d6: update version
640
+ - 22ad6134: fix bug
641
+ - d79adc59: fix bugs
642
+ - 0c401b60: fix style bug
643
+ - 0bfd5b9c: fix bugs / update table component
644
+ - f2c529af: fix bugs;
645
+ - 22ad6134: fix bug
646
+ - 22ad6134: fix bugs
647
+ - 85dd1d19: fix bugs;
648
+ - 06fffe56: fix bugs;
649
+ - 1749ac80: fix bugs;
650
+ - 47189933: fix bugs;
651
+ - 22ad6134: fix bug
652
+ - 22ad6134: fix bug
653
+ - 22ad6134: fix bugs
654
+ - 2f68630a: switch goerli to sepolia
655
+ - fcffb8d6: add deposit fee
656
+ - ef0ec24c: fix orderEntry bugs;
657
+ - 05437813: fix bugs;
658
+ - fcffb8d6: fix bug
659
+ - 7f2b1627: add account MMR and more;
660
+ - 7bc3beca: fix bugs;
661
+ - 3313fdd2: fix bugs
662
+ - d79adc59: fix bug
663
+ - c096985c: fix bugs;
664
+ - 4693affc: fix bugs;
665
+ - fcffb8d6: fix bugs
666
+ - 895669da: fix bug
667
+ - 5bf9bc51: fix bugs
668
+ - d794b2e5: fix bugs;
669
+ - 22ad6134: fix bug
670
+ - e788a66a: fix bugs;
671
+ - be705c14: fix bugs;
672
+ - a1ea426b: export ChainDialog component;
673
+ - 22ad6134: fix bug
674
+
675
+ <<<<<<< HEAD
676
+
677
+ ## 0.0.35
678
+
679
+ =======
680
+
681
+ ## 0.0.34-alpha.35
682
+
683
+ ### Patch Changes
684
+
685
+ - fix bugs;
686
+
687
+ ## 0.0.34-alpha.34
688
+
689
+ ### Patch Changes
690
+
691
+ - fix bugs;
692
+
693
+ ## 0.0.34-alpha.33
694
+
695
+ ### Patch Changes
696
+
697
+ - fix bugs;
698
+
699
+ ## 0.0.34-alpha.32
700
+
701
+ ### Patch Changes
702
+
703
+ - update kline chart;
704
+
705
+ ## 0.0.34-alpha.31
706
+
707
+ ### Patch Changes
708
+
709
+ - fix bugs;
710
+
711
+ ## 0.0.34-alpha.30
712
+
713
+ ### Patch Changes
714
+
715
+ - fix bugs;
716
+
717
+ ## 0.0.34-alpha.29
718
+
719
+ > > > > > > > alpha
720
+
721
+ ### Patch Changes
722
+
723
+ - fix bugs
724
+
725
+ <<<<<<< HEAD
726
+
727
+ ## 0.0.34
728
+
729
+ =======
730
+
731
+ ## 0.0.34-alpha.28
732
+
733
+ ### Patch Changes
734
+
735
+ - fix bugs;
736
+
737
+ ## 0.0.34-alpha.27
738
+
739
+ ### Patch Changes
740
+
741
+ - fix bugs;
742
+
743
+ ## 0.0.34-alpha.26
744
+
745
+ ### Patch Changes
746
+
747
+ - fix orderEntry bugs; add stop order;
748
+ - 85dd1d19: fix bugs;
749
+
750
+ ## 0.0.34-alpha.25
751
+
752
+ ### Patch Changes
753
+
754
+ - fix orderEntry bugs;
755
+
756
+ ## 0.0.34-alpha.24
757
+
758
+ ### Patch Changes
759
+
760
+ - update useOrderEntry hook and OrderEntry component;
761
+
762
+ ## 0.0.34-alpha.23
763
+
764
+ ### Patch Changes
765
+
766
+ - export ChainDialog component;
767
+
768
+ ## 0.0.34-alpha.22
769
+
770
+ ### Patch Changes
771
+
772
+ - fix bugs;
773
+
774
+ ## 0.0.34-alpha.21
775
+
776
+ ### Patch Changes
777
+
778
+ - fix bugs;
779
+
780
+ ## 0.0.34-alpha.20
781
+
782
+ ### Patch Changes
783
+
784
+ - add account MMR and more;
785
+
786
+ ## 0.0.34-alpha.19
787
+
788
+ ### Patch Changes
789
+
790
+ - fix bugs;
791
+
792
+ ## 0.0.34-alpha.18
793
+
794
+ ### Patch Changes
795
+
796
+ - fix bugs;
797
+
798
+ ## 0.0.34-alpha.17
799
+
800
+ ### Patch Changes
801
+
802
+ - fix bugs / update table component
803
+
804
+ ## 0.0.34-alpha.16
805
+
806
+ ### Patch Changes
807
+
808
+ - fix bugs;
809
+
810
+ ## 0.0.34-alpha.15
811
+
812
+ ### Patch Changes
813
+
814
+ - fix bugs;
815
+
816
+ ## 0.0.34-alpha.14
817
+
818
+ ### Patch Changes
819
+
820
+ - switch goerli to sepolia
821
+
822
+ ## 0.0.34-alpha.13
823
+
824
+ ### Patch Changes
825
+
826
+ - fix bugs
827
+
828
+ ## 0.0.34-alpha.12
829
+
830
+ ### Patch Changes
831
+
832
+ - fix bug
833
+
834
+ ## 0.0.34-alpha.11
835
+
836
+ ### Patch Changes
837
+
838
+ - fix bugs
839
+
840
+ ## 0.0.34-alpha.10
841
+
842
+ ### Patch Changes
843
+
844
+ - fix style bug
845
+
846
+ ## 0.0.34-alpha.9
847
+
848
+ ### Patch Changes
849
+
850
+ - fix bug
851
+
852
+ ## 0.0.34-alpha.8
853
+
854
+ ### Patch Changes
855
+
856
+ - fix bugs
857
+
858
+ ## 0.0.34-alpha.7
859
+
860
+ ### Patch Changes
861
+
862
+ - fix bug
863
+
864
+ ## 0.0.34-alpha.6
865
+
866
+ ### Patch Changes
867
+
868
+ - fix bug
869
+
870
+ ## 0.0.34-alpha.5
871
+
872
+ ### Patch Changes
873
+
874
+ - fix bug
875
+ - fix bug
876
+ - fix bug
877
+
878
+ ## 0.0.34-alpha.4
879
+
880
+ ### Patch Changes
881
+
882
+ - fix bugs
883
+ - fix bugs
884
+
885
+ ## 0.0.34-alpha.3
886
+
887
+ ### Patch Changes
888
+
889
+ - fix bug
890
+
891
+ ## 0.0.34-alpha.2
892
+
893
+ ### Patch Changes
894
+
895
+ - fix bug
896
+
897
+ ## 0.0.34-alpha.1
898
+
899
+ ### Patch Changes
900
+
901
+ - update version
902
+
903
+ ## 0.0.34-alpha.0
904
+
905
+ > > > > > > > alpha
906
+
907
+ ### Patch Changes
908
+
909
+ - fix bugs
910
+
911
+ ## 0.0.33
912
+
913
+ ### Patch Changes
914
+
915
+ - fix bugs
916
+ - fix bugs
917
+ - fix bug
918
+
919
+ ## 0.0.33-alpha.1
920
+
921
+ ### Patch Changes
922
+
923
+ - fix bug
924
+
925
+ ## 0.0.33-alpha.0
926
+
927
+ ### Patch Changes
928
+
929
+ - fix bugs
930
+
931
+ ## 0.0.32
932
+
933
+ ### Patch Changes
934
+
935
+ - fix style issues
936
+ - fix bug
937
+ - fix bugs
938
+
939
+ ## 0.0.32-alpha.1
940
+
941
+ ### Patch Changes
942
+
943
+ - fix bug
944
+
945
+ ## 0.0.32-alpha.0
946
+
947
+ ### Patch Changes
948
+
949
+ - fix style issues
950
+
951
+ ## 0.0.31
952
+
953
+ ### Patch Changes
954
+
955
+ - update
956
+
957
+ ## 0.0.30
958
+
959
+ ### Patch Changes
960
+
961
+ - fix bug
962
+
963
+ ## 0.0.29
964
+
965
+ ### Patch Changes
966
+
967
+ - fix bug
968
+
969
+ ## 0.0.28
970
+
971
+ ### Patch Changes
972
+
973
+ - update
974
+
975
+ ## 0.0.27
976
+
977
+ ### Patch Changes
978
+
979
+ - update
980
+
981
+ ## 0.0.26
982
+
983
+ ### Patch Changes
984
+
985
+ - update
986
+
987
+ ## 0.0.25
988
+
989
+ ### Patch Changes
990
+
991
+ - update
992
+
993
+ ## 0.0.24
994
+
995
+ ### Patch Changes
996
+
997
+ - update
998
+
999
+ ## 0.0.23
1000
+
1001
+ ### Patch Changes
1002
+
1003
+ - update
1004
+
1005
+ ## 0.0.22
1006
+
1007
+ ### Patch Changes
1008
+
1009
+ - update
1010
+
1011
+ ## 0.0.21
1012
+
1013
+ ### Patch Changes
1014
+
1015
+ - update
1016
+
1017
+ ## 0.0.20
1018
+
1019
+ ### Patch Changes
1020
+
1021
+ - update
1022
+
1023
+ ## 0.0.19
1024
+
1025
+ ### Patch Changes
1026
+
1027
+ - update
1028
+
1029
+ ## 0.0.18
1030
+
1031
+ ### Patch Changes
1032
+
1033
+ - update
1034
+
1035
+ ## 0.0.17
1036
+
1037
+ ### Patch Changes
1038
+
1039
+ - update
1040
+
1041
+ ## 0.0.16
1042
+
1043
+ ### Patch Changes
1044
+
1045
+ - update
1046
+
1047
+ ## 0.0.15
1048
+
1049
+ ### Patch Changes
1050
+
1051
+ - update
1052
+
1053
+ ## 0.0.14
1054
+
1055
+ ### Patch Changes
1056
+
1057
+ - update
1058
+
1059
+ ## 0.0.13
1060
+
1061
+ ### Patch Changes
1062
+
1063
+ - update
1064
+
1065
+ ## 0.0.12
1066
+
1067
+ ### Patch Changes
1068
+
1069
+ - update
1070
+
1071
+ ## 0.0.11
1072
+
1073
+ ### Patch Changes
1074
+
1075
+ - update
1076
+
1077
+ ## 0.0.10
1078
+
1079
+ ### Patch Changes
1080
+
1081
+ - update
1082
+
1083
+ ## 0.0.9
1084
+
1085
+ ### Patch Changes
1086
+
1087
+ - update
1088
+
1089
+ ## 0.0.8
1090
+
1091
+ ### Patch Changes
1092
+
1093
+ - update
1094
+
1095
+ ## 0.0.7
1096
+
1097
+ ### Patch Changes
1098
+
1099
+ - update
1100
+
1101
+ ## 0.0.6
1102
+
1103
+ ### Patch Changes
1104
+
1105
+ - update
1106
+
1107
+ ## 0.0.5
1108
+
1109
+ ### Patch Changes
1110
+
1111
+ - update
1112
+ - update
1113
+
1114
+ ## 0.0.4
1115
+
1116
+ ### Patch Changes
1117
+
1118
+ - update
1119
+
1120
+ ## 0.0.3
1121
+
1122
+ ### Patch Changes
1123
+
1124
+ - update
1125
+
1126
+ ## 0.0.2
1127
+
1128
+ ### Patch Changes
1129
+
1130
+ - update
1131
+
1132
+ ## 0.0.1
1133
+
1134
+ ### Patch Changes
1135
+
1136
+ - update
package/index.mjs ADDED
@@ -0,0 +1,164 @@
1
+ import stylistic from "@stylistic/eslint-plugin";
2
+ import eslintConfigPrettier from "eslint-config-prettier/flat";
3
+ // import importPlugin from "eslint-plugin-import";
4
+ import monorepoCop from "eslint-plugin-monorepo-cop";
5
+ import reactPlugin from "eslint-plugin-react";
6
+ import * as reactHooks from "eslint-plugin-react-hooks";
7
+ import tailwind from "eslint-plugin-tailwindcss";
8
+ import { defineConfig, globalIgnores } from "eslint/config";
9
+ import globals from "globals";
10
+ import path from "path";
11
+ import ts from "typescript-eslint";
12
+ import { fileURLToPath } from "url";
13
+
14
+ const __filename = fileURLToPath(import.meta.url);
15
+ const __dirname = path.dirname(__filename);
16
+
17
+ export default defineConfig([
18
+ globalIgnores([
19
+ "**/build/",
20
+ "**/dist/",
21
+ "**/node_modules/",
22
+ "**/public/",
23
+ "**/__test__/",
24
+ "**/storybook-static/",
25
+ "apps/docs/",
26
+ "**/*.js",
27
+ "**/*.cjs",
28
+ "**/*.d.ts",
29
+ ]),
30
+ {
31
+ languageOptions: {
32
+ // parser: typescriptEslintParser,
33
+ parserOptions: {
34
+ ecmaFeatures: {
35
+ jsx: true,
36
+ },
37
+ },
38
+ globals: {
39
+ ...globals.browser,
40
+ },
41
+ },
42
+ },
43
+ // add eslint built-in
44
+ // https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js
45
+ // js.configs.recommended,
46
+
47
+ // add `typescript-eslint` flat config simply
48
+ // if you would like use more another configuration,
49
+ // see the section: https://typescript-eslint.io/getting-started#details
50
+ // https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/eslintrc/recommended.ts
51
+ ...ts.configs.recommended,
52
+
53
+ // https://github.com/francoismassart/eslint-plugin-tailwindcss
54
+ // https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/lib/config/flat-recommended.js
55
+ ...tailwind.configs["flat/recommended"],
56
+
57
+ // https://github.com/vercel/turborepo/blob/main/packages/eslint-config-turbo/src/flat/index.ts
58
+ // ...turboConfig,
59
+
60
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/index.js#L108
61
+ reactPlugin.configs.flat.recommended,
62
+ // Add this if you are using React 17+
63
+ reactPlugin.configs.flat["jsx-runtime"],
64
+
65
+ // https://github.com/import-js/eslint-plugin-import
66
+ // importPlugin.flatConfigs.recommended,
67
+ // use custom config instead of importPlugin.flatConfigs.recommended, because it's too strict for our project
68
+ // {
69
+ // plugins: {
70
+ // import: importPlugin,
71
+ // },
72
+ // rules: {
73
+ // "import/no-relative-packages": "error",
74
+ // // analysis/correctness
75
+ // "import/no-unresolved": "warn",
76
+ // "import/named": "warn",
77
+ // "import/namespace": "warn",
78
+ // "import/default": "warn",
79
+ // "import/export": "warn",
80
+
81
+ // // red flags (thus, warnings)
82
+ // "import/no-named-as-default": "warn",
83
+ // "import/no-named-as-default-member": "warn",
84
+ // "import/no-duplicates": "warn",
85
+ // },
86
+ // languageOptions: {
87
+ // // need all these for parsing dependencies (even if _your_ code doesn't need
88
+ // // all of them)
89
+ // parserOptions: {
90
+ // sourceType: "module",
91
+ // ecmaVersion: 2018,
92
+ // },
93
+ // },
94
+ // },
95
+ {
96
+ files: ["**/*.{ts,tsx}"],
97
+ // ignores: ["dist/**", "build/**", "node_modules/**"],
98
+ plugins: {
99
+ // https://eslint.style/packages/default
100
+ "@stylistic": stylistic,
101
+ "monorepo-cop": monorepoCop,
102
+ "react-hooks": reactHooks,
103
+ },
104
+ rules: {
105
+ "no-console": ["warn", { allow: ["warn", "error"] }],
106
+ // "@stylistic/semi": ["error", "never"],
107
+ "prefer-const": "warn",
108
+ "@typescript-eslint/no-unused-expressions": "warn",
109
+ "@typescript-eslint/no-explicit-any": "warn",
110
+ "@typescript-eslint/no-unused-vars": "warn",
111
+ "@typescript-eslint/ban-ts-comment": "warn",
112
+ "@typescript-eslint/no-empty-object-type": "warn",
113
+ "@typescript-eslint/no-unused-vars": "warn",
114
+ "@typescript-eslint/no-unnecessary-type-constraint": "warn",
115
+ "@typescript-eslint/no-empty-object-type": "warn",
116
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
117
+ "@typescript-eslint/no-namespace": "warn",
118
+ "@typescript-eslint/ban-ts-comment": "off",
119
+ "react/prop-types": "off",
120
+ "react/display-name": "off",
121
+ "react/no-children-prop": "warn",
122
+ "tailwindcss/no-custom-classname": "off",
123
+
124
+ // https://github.com/sterlingwes/eslint-plugin-monorepo-cop
125
+ // prevent relative imports outside of monorepo package
126
+ "monorepo-cop/no-relative-import-outside-package": "error",
127
+ "monorepo-cop/no-disable-monorepo-no-relative-rule": "error",
128
+
129
+ // https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#flat-config-eslintconfigjsts-1
130
+ "react-hooks/rules-of-hooks": "warn",
131
+ "react-hooks/exhaustive-deps": "warn",
132
+ },
133
+ },
134
+
135
+ eslintConfigPrettier,
136
+ {
137
+ settings: {
138
+ react: {
139
+ version: "18.2",
140
+ },
141
+ // https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules
142
+ tailwindcss: {
143
+ callees: ["classnames", "cnBase", "cn"],
144
+ config: path.resolve(__dirname, "../ui/tailwind.config.js"),
145
+ // default
146
+ cssFiles: [
147
+ "**/*.css",
148
+ "!**/node_modules",
149
+ "!**/.*",
150
+ "!**/dist",
151
+ "!**/build",
152
+ ],
153
+ cssFilesRefreshRate: 5_000,
154
+ removeDuplicates: true,
155
+ skipClassAttribute: false,
156
+ whitelist: [],
157
+ // can be set to e.g. ['tw'] for use in tw`bg-blue`
158
+ tags: [],
159
+ // can be modified to support custom attributes. E.g. "^tw$" for `twin.macro`
160
+ classRegex: "^class(Name)?$",
161
+ },
162
+ },
163
+ },
164
+ ]);
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@orderly.network/eslint-config",
3
+ "version": "2.5.0-alpha.2",
4
+ "main": "index.mjs",
5
+ "module": "index.mjs",
6
+ "license": "MIT",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "dependencies": {
11
+ "@eslint/js": "^9.25.1",
12
+ "@stylistic/eslint-plugin": "^4.2.0",
13
+ "eslint-config-eslint": "^11.0.0",
14
+ "eslint-config-prettier": "^10.1.2",
15
+ "eslint-config-turbo": "^2.5.2",
16
+ "eslint-plugin-import": "^2.31.0",
17
+ "eslint-plugin-monorepo-cop": "^1.0.2",
18
+ "eslint-plugin-react": "^7.37.5",
19
+ "eslint-plugin-react-hooks": "^5.2.0",
20
+ "eslint-plugin-tailwindcss": "^3.18.0",
21
+ "globals": "^16.0.0",
22
+ "typescript-eslint": "^8.31.0"
23
+ },
24
+ "devDependencies": {
25
+ "next": "14.2.7"
26
+ }
27
+ }