@mouse_484/eslint-config 5.9.2 → 5.9.3

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ ESLint Config based on [@antfu/eslint-config](https://github.com/antfu/eslint-co
7
7
 
8
8
  ## Usage
9
9
  Run the setup command:
10
- ```
10
+ ```sh
11
11
  npx @mouse_484/eslint-config@latest
12
12
  ```
13
13
 
@@ -27,7 +27,7 @@ npx @mouse_484/eslint-config@latest
27
27
 
28
28
  ## Advanced Configuration
29
29
 
30
- #### TypeScript
30
+ ### TypeScript
31
31
 
32
32
  for type-aware linting
33
33
 
@@ -39,7 +39,7 @@ export default mouse({
39
39
  })
40
40
  ```
41
41
 
42
- #### Tailwind CSS
42
+ ### Tailwind CSS
43
43
 
44
44
  ```js
45
45
  export default mouse({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mouse_484/eslint-config",
3
3
  "type": "module",
4
- "version": "5.9.2",
4
+ "version": "5.9.3",
5
5
  "author": "mouse_484",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/mouse484/config/tree/main/packages/eslint",
@@ -24,7 +24,7 @@
24
24
  "typegen": "node scripts/typegen.js"
25
25
  },
26
26
  "dependencies": {
27
- "@antfu/eslint-config": "^7.4.3",
27
+ "@antfu/eslint-config": "^7.6.1",
28
28
  "baseline-browser-mapping": "^2.10.0",
29
29
  "eslint-plugin-better-tailwindcss": "^4.3.0",
30
30
  "package-manager-detector": "^1.6.0"
@@ -18,6 +18,7 @@ export default createConfigs({
18
18
  },
19
19
  },
20
20
  ],
21
+ 'unicorn/expiring-todo-comments': 'off',
21
22
  'unicorn/no-abusive-eslint-disable': 'off',
22
23
  'unicorn/consistent-function-scoping': [
23
24
  'error',
@@ -75,6 +75,116 @@ export interface RuleOptions {
75
75
  // ----- tailwind/enforce-canonical-classes -----
76
76
  type TailwindEnforceCanonicalClasses = []|[{
77
77
 
78
+ selectors?: ({
79
+
80
+ kind: "attribute"
81
+
82
+ match?: ({
83
+
84
+ type: "strings"
85
+ } | {
86
+
87
+ path?: string
88
+
89
+ type: "objectKeys"
90
+ } | {
91
+
92
+ path?: string
93
+
94
+ type: "objectValues"
95
+ })[]
96
+
97
+ name: string
98
+ } | ({
99
+
100
+ callTarget?: ("all" | "first" | "last" | number)
101
+
102
+ kind: "callee"
103
+
104
+ match?: ({
105
+
106
+ type: "strings"
107
+ } | {
108
+
109
+ path?: string
110
+
111
+ type: "objectKeys"
112
+ } | {
113
+
114
+ path?: string
115
+
116
+ type: "objectValues"
117
+ })[]
118
+
119
+ name: string
120
+
121
+ path?: string
122
+ } | {
123
+
124
+ callTarget?: ("all" | "first" | "last" | number)
125
+
126
+ kind: "callee"
127
+
128
+ match?: ({
129
+
130
+ type: "strings"
131
+ } | {
132
+
133
+ path?: string
134
+
135
+ type: "objectKeys"
136
+ } | {
137
+
138
+ path?: string
139
+
140
+ type: "objectValues"
141
+ })[]
142
+
143
+ name?: string
144
+
145
+ path: string
146
+ }) | {
147
+
148
+ kind: "tag"
149
+
150
+ match?: ({
151
+
152
+ type: "strings"
153
+ } | {
154
+
155
+ path?: string
156
+
157
+ type: "objectKeys"
158
+ } | {
159
+
160
+ path?: string
161
+
162
+ type: "objectValues"
163
+ })[]
164
+
165
+ name: string
166
+ } | {
167
+
168
+ kind: "variable"
169
+
170
+ match?: ({
171
+
172
+ type: "strings"
173
+ } | {
174
+
175
+ path?: string
176
+
177
+ type: "objectKeys"
178
+ } | {
179
+
180
+ path?: string
181
+
182
+ type: "objectValues"
183
+ })[]
184
+
185
+ name: string
186
+ })[]
187
+
78
188
  callees?: ([string, ({
79
189
 
80
190
  match: "strings"
@@ -154,6 +264,116 @@ type TailwindEnforceCanonicalClasses = []|[{
154
264
  // ----- tailwind/enforce-consistent-class-order -----
155
265
  type TailwindEnforceConsistentClassOrder = []|[{
156
266
 
267
+ selectors?: ({
268
+
269
+ kind: "attribute"
270
+
271
+ match?: ({
272
+
273
+ type: "strings"
274
+ } | {
275
+
276
+ path?: string
277
+
278
+ type: "objectKeys"
279
+ } | {
280
+
281
+ path?: string
282
+
283
+ type: "objectValues"
284
+ })[]
285
+
286
+ name: string
287
+ } | ({
288
+
289
+ callTarget?: ("all" | "first" | "last" | number)
290
+
291
+ kind: "callee"
292
+
293
+ match?: ({
294
+
295
+ type: "strings"
296
+ } | {
297
+
298
+ path?: string
299
+
300
+ type: "objectKeys"
301
+ } | {
302
+
303
+ path?: string
304
+
305
+ type: "objectValues"
306
+ })[]
307
+
308
+ name: string
309
+
310
+ path?: string
311
+ } | {
312
+
313
+ callTarget?: ("all" | "first" | "last" | number)
314
+
315
+ kind: "callee"
316
+
317
+ match?: ({
318
+
319
+ type: "strings"
320
+ } | {
321
+
322
+ path?: string
323
+
324
+ type: "objectKeys"
325
+ } | {
326
+
327
+ path?: string
328
+
329
+ type: "objectValues"
330
+ })[]
331
+
332
+ name?: string
333
+
334
+ path: string
335
+ }) | {
336
+
337
+ kind: "tag"
338
+
339
+ match?: ({
340
+
341
+ type: "strings"
342
+ } | {
343
+
344
+ path?: string
345
+
346
+ type: "objectKeys"
347
+ } | {
348
+
349
+ path?: string
350
+
351
+ type: "objectValues"
352
+ })[]
353
+
354
+ name: string
355
+ } | {
356
+
357
+ kind: "variable"
358
+
359
+ match?: ({
360
+
361
+ type: "strings"
362
+ } | {
363
+
364
+ path?: string
365
+
366
+ type: "objectKeys"
367
+ } | {
368
+
369
+ path?: string
370
+
371
+ type: "objectValues"
372
+ })[]
373
+
374
+ name: string
375
+ })[]
376
+
157
377
  callees?: ([string, ({
158
378
 
159
379
  match: "strings"
@@ -239,6 +459,116 @@ type TailwindEnforceConsistentClassOrder = []|[{
239
459
  // ----- tailwind/enforce-consistent-important-position -----
240
460
  type TailwindEnforceConsistentImportantPosition = []|[{
241
461
 
462
+ selectors?: ({
463
+
464
+ kind: "attribute"
465
+
466
+ match?: ({
467
+
468
+ type: "strings"
469
+ } | {
470
+
471
+ path?: string
472
+
473
+ type: "objectKeys"
474
+ } | {
475
+
476
+ path?: string
477
+
478
+ type: "objectValues"
479
+ })[]
480
+
481
+ name: string
482
+ } | ({
483
+
484
+ callTarget?: ("all" | "first" | "last" | number)
485
+
486
+ kind: "callee"
487
+
488
+ match?: ({
489
+
490
+ type: "strings"
491
+ } | {
492
+
493
+ path?: string
494
+
495
+ type: "objectKeys"
496
+ } | {
497
+
498
+ path?: string
499
+
500
+ type: "objectValues"
501
+ })[]
502
+
503
+ name: string
504
+
505
+ path?: string
506
+ } | {
507
+
508
+ callTarget?: ("all" | "first" | "last" | number)
509
+
510
+ kind: "callee"
511
+
512
+ match?: ({
513
+
514
+ type: "strings"
515
+ } | {
516
+
517
+ path?: string
518
+
519
+ type: "objectKeys"
520
+ } | {
521
+
522
+ path?: string
523
+
524
+ type: "objectValues"
525
+ })[]
526
+
527
+ name?: string
528
+
529
+ path: string
530
+ }) | {
531
+
532
+ kind: "tag"
533
+
534
+ match?: ({
535
+
536
+ type: "strings"
537
+ } | {
538
+
539
+ path?: string
540
+
541
+ type: "objectKeys"
542
+ } | {
543
+
544
+ path?: string
545
+
546
+ type: "objectValues"
547
+ })[]
548
+
549
+ name: string
550
+ } | {
551
+
552
+ kind: "variable"
553
+
554
+ match?: ({
555
+
556
+ type: "strings"
557
+ } | {
558
+
559
+ path?: string
560
+
561
+ type: "objectKeys"
562
+ } | {
563
+
564
+ path?: string
565
+
566
+ type: "objectValues"
567
+ })[]
568
+
569
+ name: string
570
+ })[]
571
+
242
572
  callees?: ([string, ({
243
573
 
244
574
  match: "strings"
@@ -316,6 +646,116 @@ type TailwindEnforceConsistentImportantPosition = []|[{
316
646
  // ----- tailwind/enforce-consistent-line-wrapping -----
317
647
  type TailwindEnforceConsistentLineWrapping = []|[{
318
648
 
649
+ selectors?: ({
650
+
651
+ kind: "attribute"
652
+
653
+ match?: ({
654
+
655
+ type: "strings"
656
+ } | {
657
+
658
+ path?: string
659
+
660
+ type: "objectKeys"
661
+ } | {
662
+
663
+ path?: string
664
+
665
+ type: "objectValues"
666
+ })[]
667
+
668
+ name: string
669
+ } | ({
670
+
671
+ callTarget?: ("all" | "first" | "last" | number)
672
+
673
+ kind: "callee"
674
+
675
+ match?: ({
676
+
677
+ type: "strings"
678
+ } | {
679
+
680
+ path?: string
681
+
682
+ type: "objectKeys"
683
+ } | {
684
+
685
+ path?: string
686
+
687
+ type: "objectValues"
688
+ })[]
689
+
690
+ name: string
691
+
692
+ path?: string
693
+ } | {
694
+
695
+ callTarget?: ("all" | "first" | "last" | number)
696
+
697
+ kind: "callee"
698
+
699
+ match?: ({
700
+
701
+ type: "strings"
702
+ } | {
703
+
704
+ path?: string
705
+
706
+ type: "objectKeys"
707
+ } | {
708
+
709
+ path?: string
710
+
711
+ type: "objectValues"
712
+ })[]
713
+
714
+ name?: string
715
+
716
+ path: string
717
+ }) | {
718
+
719
+ kind: "tag"
720
+
721
+ match?: ({
722
+
723
+ type: "strings"
724
+ } | {
725
+
726
+ path?: string
727
+
728
+ type: "objectKeys"
729
+ } | {
730
+
731
+ path?: string
732
+
733
+ type: "objectValues"
734
+ })[]
735
+
736
+ name: string
737
+ } | {
738
+
739
+ kind: "variable"
740
+
741
+ match?: ({
742
+
743
+ type: "strings"
744
+ } | {
745
+
746
+ path?: string
747
+
748
+ type: "objectKeys"
749
+ } | {
750
+
751
+ path?: string
752
+
753
+ type: "objectValues"
754
+ })[]
755
+
756
+ name: string
757
+ })[]
758
+
319
759
  callees?: ([string, ({
320
760
 
321
761
  match: "strings"
@@ -405,6 +845,116 @@ type TailwindEnforceConsistentLineWrapping = []|[{
405
845
  // ----- tailwind/enforce-consistent-variable-syntax -----
406
846
  type TailwindEnforceConsistentVariableSyntax = []|[{
407
847
 
848
+ selectors?: ({
849
+
850
+ kind: "attribute"
851
+
852
+ match?: ({
853
+
854
+ type: "strings"
855
+ } | {
856
+
857
+ path?: string
858
+
859
+ type: "objectKeys"
860
+ } | {
861
+
862
+ path?: string
863
+
864
+ type: "objectValues"
865
+ })[]
866
+
867
+ name: string
868
+ } | ({
869
+
870
+ callTarget?: ("all" | "first" | "last" | number)
871
+
872
+ kind: "callee"
873
+
874
+ match?: ({
875
+
876
+ type: "strings"
877
+ } | {
878
+
879
+ path?: string
880
+
881
+ type: "objectKeys"
882
+ } | {
883
+
884
+ path?: string
885
+
886
+ type: "objectValues"
887
+ })[]
888
+
889
+ name: string
890
+
891
+ path?: string
892
+ } | {
893
+
894
+ callTarget?: ("all" | "first" | "last" | number)
895
+
896
+ kind: "callee"
897
+
898
+ match?: ({
899
+
900
+ type: "strings"
901
+ } | {
902
+
903
+ path?: string
904
+
905
+ type: "objectKeys"
906
+ } | {
907
+
908
+ path?: string
909
+
910
+ type: "objectValues"
911
+ })[]
912
+
913
+ name?: string
914
+
915
+ path: string
916
+ }) | {
917
+
918
+ kind: "tag"
919
+
920
+ match?: ({
921
+
922
+ type: "strings"
923
+ } | {
924
+
925
+ path?: string
926
+
927
+ type: "objectKeys"
928
+ } | {
929
+
930
+ path?: string
931
+
932
+ type: "objectValues"
933
+ })[]
934
+
935
+ name: string
936
+ } | {
937
+
938
+ kind: "variable"
939
+
940
+ match?: ({
941
+
942
+ type: "strings"
943
+ } | {
944
+
945
+ path?: string
946
+
947
+ type: "objectKeys"
948
+ } | {
949
+
950
+ path?: string
951
+
952
+ type: "objectValues"
953
+ })[]
954
+
955
+ name: string
956
+ })[]
957
+
408
958
  callees?: ([string, ({
409
959
 
410
960
  match: "strings"
@@ -482,6 +1032,116 @@ type TailwindEnforceConsistentVariableSyntax = []|[{
482
1032
  // ----- tailwind/enforce-shorthand-classes -----
483
1033
  type TailwindEnforceShorthandClasses = []|[{
484
1034
 
1035
+ selectors?: ({
1036
+
1037
+ kind: "attribute"
1038
+
1039
+ match?: ({
1040
+
1041
+ type: "strings"
1042
+ } | {
1043
+
1044
+ path?: string
1045
+
1046
+ type: "objectKeys"
1047
+ } | {
1048
+
1049
+ path?: string
1050
+
1051
+ type: "objectValues"
1052
+ })[]
1053
+
1054
+ name: string
1055
+ } | ({
1056
+
1057
+ callTarget?: ("all" | "first" | "last" | number)
1058
+
1059
+ kind: "callee"
1060
+
1061
+ match?: ({
1062
+
1063
+ type: "strings"
1064
+ } | {
1065
+
1066
+ path?: string
1067
+
1068
+ type: "objectKeys"
1069
+ } | {
1070
+
1071
+ path?: string
1072
+
1073
+ type: "objectValues"
1074
+ })[]
1075
+
1076
+ name: string
1077
+
1078
+ path?: string
1079
+ } | {
1080
+
1081
+ callTarget?: ("all" | "first" | "last" | number)
1082
+
1083
+ kind: "callee"
1084
+
1085
+ match?: ({
1086
+
1087
+ type: "strings"
1088
+ } | {
1089
+
1090
+ path?: string
1091
+
1092
+ type: "objectKeys"
1093
+ } | {
1094
+
1095
+ path?: string
1096
+
1097
+ type: "objectValues"
1098
+ })[]
1099
+
1100
+ name?: string
1101
+
1102
+ path: string
1103
+ }) | {
1104
+
1105
+ kind: "tag"
1106
+
1107
+ match?: ({
1108
+
1109
+ type: "strings"
1110
+ } | {
1111
+
1112
+ path?: string
1113
+
1114
+ type: "objectKeys"
1115
+ } | {
1116
+
1117
+ path?: string
1118
+
1119
+ type: "objectValues"
1120
+ })[]
1121
+
1122
+ name: string
1123
+ } | {
1124
+
1125
+ kind: "variable"
1126
+
1127
+ match?: ({
1128
+
1129
+ type: "strings"
1130
+ } | {
1131
+
1132
+ path?: string
1133
+
1134
+ type: "objectKeys"
1135
+ } | {
1136
+
1137
+ path?: string
1138
+
1139
+ type: "objectValues"
1140
+ })[]
1141
+
1142
+ name: string
1143
+ })[]
1144
+
485
1145
  callees?: ([string, ({
486
1146
 
487
1147
  match: "strings"
@@ -557,6 +1217,116 @@ type TailwindEnforceShorthandClasses = []|[{
557
1217
  // ----- tailwind/no-conflicting-classes -----
558
1218
  type TailwindNoConflictingClasses = []|[{
559
1219
 
1220
+ selectors?: ({
1221
+
1222
+ kind: "attribute"
1223
+
1224
+ match?: ({
1225
+
1226
+ type: "strings"
1227
+ } | {
1228
+
1229
+ path?: string
1230
+
1231
+ type: "objectKeys"
1232
+ } | {
1233
+
1234
+ path?: string
1235
+
1236
+ type: "objectValues"
1237
+ })[]
1238
+
1239
+ name: string
1240
+ } | ({
1241
+
1242
+ callTarget?: ("all" | "first" | "last" | number)
1243
+
1244
+ kind: "callee"
1245
+
1246
+ match?: ({
1247
+
1248
+ type: "strings"
1249
+ } | {
1250
+
1251
+ path?: string
1252
+
1253
+ type: "objectKeys"
1254
+ } | {
1255
+
1256
+ path?: string
1257
+
1258
+ type: "objectValues"
1259
+ })[]
1260
+
1261
+ name: string
1262
+
1263
+ path?: string
1264
+ } | {
1265
+
1266
+ callTarget?: ("all" | "first" | "last" | number)
1267
+
1268
+ kind: "callee"
1269
+
1270
+ match?: ({
1271
+
1272
+ type: "strings"
1273
+ } | {
1274
+
1275
+ path?: string
1276
+
1277
+ type: "objectKeys"
1278
+ } | {
1279
+
1280
+ path?: string
1281
+
1282
+ type: "objectValues"
1283
+ })[]
1284
+
1285
+ name?: string
1286
+
1287
+ path: string
1288
+ }) | {
1289
+
1290
+ kind: "tag"
1291
+
1292
+ match?: ({
1293
+
1294
+ type: "strings"
1295
+ } | {
1296
+
1297
+ path?: string
1298
+
1299
+ type: "objectKeys"
1300
+ } | {
1301
+
1302
+ path?: string
1303
+
1304
+ type: "objectValues"
1305
+ })[]
1306
+
1307
+ name: string
1308
+ } | {
1309
+
1310
+ kind: "variable"
1311
+
1312
+ match?: ({
1313
+
1314
+ type: "strings"
1315
+ } | {
1316
+
1317
+ path?: string
1318
+
1319
+ type: "objectKeys"
1320
+ } | {
1321
+
1322
+ path?: string
1323
+
1324
+ type: "objectValues"
1325
+ })[]
1326
+
1327
+ name: string
1328
+ })[]
1329
+
560
1330
  callees?: ([string, ({
561
1331
 
562
1332
  match: "strings"
@@ -632,6 +1402,116 @@ type TailwindNoConflictingClasses = []|[{
632
1402
  // ----- tailwind/no-deprecated-classes -----
633
1403
  type TailwindNoDeprecatedClasses = []|[{
634
1404
 
1405
+ selectors?: ({
1406
+
1407
+ kind: "attribute"
1408
+
1409
+ match?: ({
1410
+
1411
+ type: "strings"
1412
+ } | {
1413
+
1414
+ path?: string
1415
+
1416
+ type: "objectKeys"
1417
+ } | {
1418
+
1419
+ path?: string
1420
+
1421
+ type: "objectValues"
1422
+ })[]
1423
+
1424
+ name: string
1425
+ } | ({
1426
+
1427
+ callTarget?: ("all" | "first" | "last" | number)
1428
+
1429
+ kind: "callee"
1430
+
1431
+ match?: ({
1432
+
1433
+ type: "strings"
1434
+ } | {
1435
+
1436
+ path?: string
1437
+
1438
+ type: "objectKeys"
1439
+ } | {
1440
+
1441
+ path?: string
1442
+
1443
+ type: "objectValues"
1444
+ })[]
1445
+
1446
+ name: string
1447
+
1448
+ path?: string
1449
+ } | {
1450
+
1451
+ callTarget?: ("all" | "first" | "last" | number)
1452
+
1453
+ kind: "callee"
1454
+
1455
+ match?: ({
1456
+
1457
+ type: "strings"
1458
+ } | {
1459
+
1460
+ path?: string
1461
+
1462
+ type: "objectKeys"
1463
+ } | {
1464
+
1465
+ path?: string
1466
+
1467
+ type: "objectValues"
1468
+ })[]
1469
+
1470
+ name?: string
1471
+
1472
+ path: string
1473
+ }) | {
1474
+
1475
+ kind: "tag"
1476
+
1477
+ match?: ({
1478
+
1479
+ type: "strings"
1480
+ } | {
1481
+
1482
+ path?: string
1483
+
1484
+ type: "objectKeys"
1485
+ } | {
1486
+
1487
+ path?: string
1488
+
1489
+ type: "objectValues"
1490
+ })[]
1491
+
1492
+ name: string
1493
+ } | {
1494
+
1495
+ kind: "variable"
1496
+
1497
+ match?: ({
1498
+
1499
+ type: "strings"
1500
+ } | {
1501
+
1502
+ path?: string
1503
+
1504
+ type: "objectKeys"
1505
+ } | {
1506
+
1507
+ path?: string
1508
+
1509
+ type: "objectValues"
1510
+ })[]
1511
+
1512
+ name: string
1513
+ })[]
1514
+
635
1515
  callees?: ([string, ({
636
1516
 
637
1517
  match: "strings"
@@ -707,6 +1587,116 @@ type TailwindNoDeprecatedClasses = []|[{
707
1587
  // ----- tailwind/no-duplicate-classes -----
708
1588
  type TailwindNoDuplicateClasses = []|[{
709
1589
 
1590
+ selectors?: ({
1591
+
1592
+ kind: "attribute"
1593
+
1594
+ match?: ({
1595
+
1596
+ type: "strings"
1597
+ } | {
1598
+
1599
+ path?: string
1600
+
1601
+ type: "objectKeys"
1602
+ } | {
1603
+
1604
+ path?: string
1605
+
1606
+ type: "objectValues"
1607
+ })[]
1608
+
1609
+ name: string
1610
+ } | ({
1611
+
1612
+ callTarget?: ("all" | "first" | "last" | number)
1613
+
1614
+ kind: "callee"
1615
+
1616
+ match?: ({
1617
+
1618
+ type: "strings"
1619
+ } | {
1620
+
1621
+ path?: string
1622
+
1623
+ type: "objectKeys"
1624
+ } | {
1625
+
1626
+ path?: string
1627
+
1628
+ type: "objectValues"
1629
+ })[]
1630
+
1631
+ name: string
1632
+
1633
+ path?: string
1634
+ } | {
1635
+
1636
+ callTarget?: ("all" | "first" | "last" | number)
1637
+
1638
+ kind: "callee"
1639
+
1640
+ match?: ({
1641
+
1642
+ type: "strings"
1643
+ } | {
1644
+
1645
+ path?: string
1646
+
1647
+ type: "objectKeys"
1648
+ } | {
1649
+
1650
+ path?: string
1651
+
1652
+ type: "objectValues"
1653
+ })[]
1654
+
1655
+ name?: string
1656
+
1657
+ path: string
1658
+ }) | {
1659
+
1660
+ kind: "tag"
1661
+
1662
+ match?: ({
1663
+
1664
+ type: "strings"
1665
+ } | {
1666
+
1667
+ path?: string
1668
+
1669
+ type: "objectKeys"
1670
+ } | {
1671
+
1672
+ path?: string
1673
+
1674
+ type: "objectValues"
1675
+ })[]
1676
+
1677
+ name: string
1678
+ } | {
1679
+
1680
+ kind: "variable"
1681
+
1682
+ match?: ({
1683
+
1684
+ type: "strings"
1685
+ } | {
1686
+
1687
+ path?: string
1688
+
1689
+ type: "objectKeys"
1690
+ } | {
1691
+
1692
+ path?: string
1693
+
1694
+ type: "objectValues"
1695
+ })[]
1696
+
1697
+ name: string
1698
+ })[]
1699
+
710
1700
  callees?: ([string, ({
711
1701
 
712
1702
  match: "strings"
@@ -782,6 +1772,116 @@ type TailwindNoDuplicateClasses = []|[{
782
1772
  // ----- tailwind/no-restricted-classes -----
783
1773
  type TailwindNoRestrictedClasses = []|[{
784
1774
 
1775
+ selectors?: ({
1776
+
1777
+ kind: "attribute"
1778
+
1779
+ match?: ({
1780
+
1781
+ type: "strings"
1782
+ } | {
1783
+
1784
+ path?: string
1785
+
1786
+ type: "objectKeys"
1787
+ } | {
1788
+
1789
+ path?: string
1790
+
1791
+ type: "objectValues"
1792
+ })[]
1793
+
1794
+ name: string
1795
+ } | ({
1796
+
1797
+ callTarget?: ("all" | "first" | "last" | number)
1798
+
1799
+ kind: "callee"
1800
+
1801
+ match?: ({
1802
+
1803
+ type: "strings"
1804
+ } | {
1805
+
1806
+ path?: string
1807
+
1808
+ type: "objectKeys"
1809
+ } | {
1810
+
1811
+ path?: string
1812
+
1813
+ type: "objectValues"
1814
+ })[]
1815
+
1816
+ name: string
1817
+
1818
+ path?: string
1819
+ } | {
1820
+
1821
+ callTarget?: ("all" | "first" | "last" | number)
1822
+
1823
+ kind: "callee"
1824
+
1825
+ match?: ({
1826
+
1827
+ type: "strings"
1828
+ } | {
1829
+
1830
+ path?: string
1831
+
1832
+ type: "objectKeys"
1833
+ } | {
1834
+
1835
+ path?: string
1836
+
1837
+ type: "objectValues"
1838
+ })[]
1839
+
1840
+ name?: string
1841
+
1842
+ path: string
1843
+ }) | {
1844
+
1845
+ kind: "tag"
1846
+
1847
+ match?: ({
1848
+
1849
+ type: "strings"
1850
+ } | {
1851
+
1852
+ path?: string
1853
+
1854
+ type: "objectKeys"
1855
+ } | {
1856
+
1857
+ path?: string
1858
+
1859
+ type: "objectValues"
1860
+ })[]
1861
+
1862
+ name: string
1863
+ } | {
1864
+
1865
+ kind: "variable"
1866
+
1867
+ match?: ({
1868
+
1869
+ type: "strings"
1870
+ } | {
1871
+
1872
+ path?: string
1873
+
1874
+ type: "objectKeys"
1875
+ } | {
1876
+
1877
+ path?: string
1878
+
1879
+ type: "objectValues"
1880
+ })[]
1881
+
1882
+ name: string
1883
+ })[]
1884
+
785
1885
  callees?: ([string, ({
786
1886
 
787
1887
  match: "strings"
@@ -865,6 +1965,116 @@ type TailwindNoRestrictedClasses = []|[{
865
1965
  // ----- tailwind/no-unknown-classes -----
866
1966
  type TailwindNoUnknownClasses = []|[{
867
1967
 
1968
+ selectors?: ({
1969
+
1970
+ kind: "attribute"
1971
+
1972
+ match?: ({
1973
+
1974
+ type: "strings"
1975
+ } | {
1976
+
1977
+ path?: string
1978
+
1979
+ type: "objectKeys"
1980
+ } | {
1981
+
1982
+ path?: string
1983
+
1984
+ type: "objectValues"
1985
+ })[]
1986
+
1987
+ name: string
1988
+ } | ({
1989
+
1990
+ callTarget?: ("all" | "first" | "last" | number)
1991
+
1992
+ kind: "callee"
1993
+
1994
+ match?: ({
1995
+
1996
+ type: "strings"
1997
+ } | {
1998
+
1999
+ path?: string
2000
+
2001
+ type: "objectKeys"
2002
+ } | {
2003
+
2004
+ path?: string
2005
+
2006
+ type: "objectValues"
2007
+ })[]
2008
+
2009
+ name: string
2010
+
2011
+ path?: string
2012
+ } | {
2013
+
2014
+ callTarget?: ("all" | "first" | "last" | number)
2015
+
2016
+ kind: "callee"
2017
+
2018
+ match?: ({
2019
+
2020
+ type: "strings"
2021
+ } | {
2022
+
2023
+ path?: string
2024
+
2025
+ type: "objectKeys"
2026
+ } | {
2027
+
2028
+ path?: string
2029
+
2030
+ type: "objectValues"
2031
+ })[]
2032
+
2033
+ name?: string
2034
+
2035
+ path: string
2036
+ }) | {
2037
+
2038
+ kind: "tag"
2039
+
2040
+ match?: ({
2041
+
2042
+ type: "strings"
2043
+ } | {
2044
+
2045
+ path?: string
2046
+
2047
+ type: "objectKeys"
2048
+ } | {
2049
+
2050
+ path?: string
2051
+
2052
+ type: "objectValues"
2053
+ })[]
2054
+
2055
+ name: string
2056
+ } | {
2057
+
2058
+ kind: "variable"
2059
+
2060
+ match?: ({
2061
+
2062
+ type: "strings"
2063
+ } | {
2064
+
2065
+ path?: string
2066
+
2067
+ type: "objectKeys"
2068
+ } | {
2069
+
2070
+ path?: string
2071
+
2072
+ type: "objectValues"
2073
+ })[]
2074
+
2075
+ name: string
2076
+ })[]
2077
+
868
2078
  callees?: ([string, ({
869
2079
 
870
2080
  match: "strings"
@@ -942,6 +2152,116 @@ type TailwindNoUnknownClasses = []|[{
942
2152
  // ----- tailwind/no-unnecessary-whitespace -----
943
2153
  type TailwindNoUnnecessaryWhitespace = []|[{
944
2154
 
2155
+ selectors?: ({
2156
+
2157
+ kind: "attribute"
2158
+
2159
+ match?: ({
2160
+
2161
+ type: "strings"
2162
+ } | {
2163
+
2164
+ path?: string
2165
+
2166
+ type: "objectKeys"
2167
+ } | {
2168
+
2169
+ path?: string
2170
+
2171
+ type: "objectValues"
2172
+ })[]
2173
+
2174
+ name: string
2175
+ } | ({
2176
+
2177
+ callTarget?: ("all" | "first" | "last" | number)
2178
+
2179
+ kind: "callee"
2180
+
2181
+ match?: ({
2182
+
2183
+ type: "strings"
2184
+ } | {
2185
+
2186
+ path?: string
2187
+
2188
+ type: "objectKeys"
2189
+ } | {
2190
+
2191
+ path?: string
2192
+
2193
+ type: "objectValues"
2194
+ })[]
2195
+
2196
+ name: string
2197
+
2198
+ path?: string
2199
+ } | {
2200
+
2201
+ callTarget?: ("all" | "first" | "last" | number)
2202
+
2203
+ kind: "callee"
2204
+
2205
+ match?: ({
2206
+
2207
+ type: "strings"
2208
+ } | {
2209
+
2210
+ path?: string
2211
+
2212
+ type: "objectKeys"
2213
+ } | {
2214
+
2215
+ path?: string
2216
+
2217
+ type: "objectValues"
2218
+ })[]
2219
+
2220
+ name?: string
2221
+
2222
+ path: string
2223
+ }) | {
2224
+
2225
+ kind: "tag"
2226
+
2227
+ match?: ({
2228
+
2229
+ type: "strings"
2230
+ } | {
2231
+
2232
+ path?: string
2233
+
2234
+ type: "objectKeys"
2235
+ } | {
2236
+
2237
+ path?: string
2238
+
2239
+ type: "objectValues"
2240
+ })[]
2241
+
2242
+ name: string
2243
+ } | {
2244
+
2245
+ kind: "variable"
2246
+
2247
+ match?: ({
2248
+
2249
+ type: "strings"
2250
+ } | {
2251
+
2252
+ path?: string
2253
+
2254
+ type: "objectKeys"
2255
+ } | {
2256
+
2257
+ path?: string
2258
+
2259
+ type: "objectValues"
2260
+ })[]
2261
+
2262
+ name: string
2263
+ })[]
2264
+
945
2265
  callees?: ([string, ({
946
2266
 
947
2267
  match: "strings"