eslint-plugin-better-tailwindcss 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +1 -1
  2. package/lib/api/defaults.d.ts +84 -14
  3. package/lib/api/defaults.d.ts.map +1 -1
  4. package/lib/api/defaults.js +25 -5
  5. package/lib/api/defaults.js.map +1 -1
  6. package/lib/api/types.d.ts +2 -2
  7. package/lib/api/types.d.ts.map +1 -1
  8. package/lib/api/types.js +1 -1
  9. package/lib/api/types.js.map +1 -1
  10. package/lib/configs/config.d.ts +1754 -194
  11. package/lib/configs/config.d.ts.map +1 -1
  12. package/lib/options/callees/cc.d.ts +28 -12
  13. package/lib/options/callees/cc.d.ts.map +1 -1
  14. package/lib/options/callees/cc.js +15 -13
  15. package/lib/options/callees/cc.js.map +1 -1
  16. package/lib/options/callees/clb.d.ts +33 -17
  17. package/lib/options/callees/clb.d.ts.map +1 -1
  18. package/lib/options/callees/clb.js +25 -22
  19. package/lib/options/callees/clb.js.map +1 -1
  20. package/lib/options/callees/clsx.d.ts +28 -12
  21. package/lib/options/callees/clsx.d.ts.map +1 -1
  22. package/lib/options/callees/clsx.js +15 -13
  23. package/lib/options/callees/clsx.js.map +1 -1
  24. package/lib/options/callees/cn.d.ts +28 -12
  25. package/lib/options/callees/cn.d.ts.map +1 -1
  26. package/lib/options/callees/cn.js +15 -13
  27. package/lib/options/callees/cn.js.map +1 -1
  28. package/lib/options/callees/cnb.d.ts +28 -12
  29. package/lib/options/callees/cnb.d.ts.map +1 -1
  30. package/lib/options/callees/cnb.js +15 -13
  31. package/lib/options/callees/cnb.js.map +1 -1
  32. package/lib/options/callees/ctl.d.ts +15 -7
  33. package/lib/options/callees/ctl.d.ts.map +1 -1
  34. package/lib/options/callees/ctl.js +8 -7
  35. package/lib/options/callees/ctl.js.map +1 -1
  36. package/lib/options/callees/cva.d.ts +38 -18
  37. package/lib/options/callees/cva.d.ts.map +1 -1
  38. package/lib/options/callees/cva.js +24 -21
  39. package/lib/options/callees/cva.js.map +1 -1
  40. package/lib/options/callees/cx.d.ts +28 -12
  41. package/lib/options/callees/cx.d.ts.map +1 -1
  42. package/lib/options/callees/cx.js +15 -13
  43. package/lib/options/callees/cx.js.map +1 -1
  44. package/lib/options/callees/dcnb.d.ts +28 -12
  45. package/lib/options/callees/dcnb.d.ts.map +1 -1
  46. package/lib/options/callees/dcnb.js +15 -13
  47. package/lib/options/callees/dcnb.js.map +1 -1
  48. package/lib/options/callees/objstr.d.ts +22 -10
  49. package/lib/options/callees/objstr.d.ts.map +1 -1
  50. package/lib/options/callees/objstr.js +15 -13
  51. package/lib/options/callees/objstr.js.map +1 -1
  52. package/lib/options/callees/tv.d.ts +62 -30
  53. package/lib/options/callees/tv.d.ts.map +1 -1
  54. package/lib/options/callees/tv.js +48 -42
  55. package/lib/options/callees/tv.js.map +1 -1
  56. package/lib/options/callees/twJoin.d.ts +15 -7
  57. package/lib/options/callees/twJoin.d.ts.map +1 -1
  58. package/lib/options/callees/twJoin.js +8 -7
  59. package/lib/options/callees/twJoin.js.map +1 -1
  60. package/lib/options/callees/twMerge.d.ts +15 -7
  61. package/lib/options/callees/twMerge.d.ts.map +1 -1
  62. package/lib/options/callees/twMerge.js +8 -7
  63. package/lib/options/callees/twMerge.js.map +1 -1
  64. package/lib/options/default-options.d.ts +78 -13
  65. package/lib/options/default-options.d.ts.map +1 -1
  66. package/lib/options/default-options.js +97 -50
  67. package/lib/options/default-options.js.map +1 -1
  68. package/lib/options/descriptions.d.ts +210 -17
  69. package/lib/options/descriptions.d.ts.map +1 -1
  70. package/lib/options/descriptions.js +2 -0
  71. package/lib/options/descriptions.js.map +1 -1
  72. package/lib/options/migrate.d.ts +16 -0
  73. package/lib/options/migrate.d.ts.map +1 -0
  74. package/lib/options/migrate.js +115 -0
  75. package/lib/options/migrate.js.map +1 -0
  76. package/lib/options/schemas/attributes.d.ts +1 -5
  77. package/lib/options/schemas/attributes.d.ts.map +1 -1
  78. package/lib/options/schemas/attributes.js +1 -2
  79. package/lib/options/schemas/attributes.js.map +1 -1
  80. package/lib/options/schemas/callees.d.ts +1 -8
  81. package/lib/options/schemas/callees.d.ts.map +1 -1
  82. package/lib/options/schemas/callees.js +1 -2
  83. package/lib/options/schemas/callees.js.map +1 -1
  84. package/lib/options/schemas/selectors.d.ts +488 -0
  85. package/lib/options/schemas/selectors.d.ts.map +1 -0
  86. package/lib/options/schemas/selectors.js +69 -0
  87. package/lib/options/schemas/selectors.js.map +1 -0
  88. package/lib/options/schemas/tags.d.ts +1 -1
  89. package/lib/options/schemas/tags.d.ts.map +1 -1
  90. package/lib/options/schemas/tags.js +1 -2
  91. package/lib/options/schemas/tags.js.map +1 -1
  92. package/lib/options/schemas/variables.d.ts +1 -3
  93. package/lib/options/schemas/variables.d.ts.map +1 -1
  94. package/lib/options/schemas/variables.js +1 -2
  95. package/lib/options/schemas/variables.js.map +1 -1
  96. package/lib/parsers/angular.d.ts +2 -2
  97. package/lib/parsers/angular.d.ts.map +1 -1
  98. package/lib/parsers/angular.js +21 -25
  99. package/lib/parsers/angular.js.map +1 -1
  100. package/lib/parsers/es.d.ts +5 -8
  101. package/lib/parsers/es.d.ts.map +1 -1
  102. package/lib/parsers/es.js +109 -47
  103. package/lib/parsers/es.js.map +1 -1
  104. package/lib/parsers/html.d.ts +2 -2
  105. package/lib/parsers/html.d.ts.map +1 -1
  106. package/lib/parsers/html.js +7 -10
  107. package/lib/parsers/html.js.map +1 -1
  108. package/lib/parsers/jsx.d.ts +2 -2
  109. package/lib/parsers/jsx.d.ts.map +1 -1
  110. package/lib/parsers/jsx.js +8 -13
  111. package/lib/parsers/jsx.js.map +1 -1
  112. package/lib/parsers/svelte.d.ts +3 -3
  113. package/lib/parsers/svelte.d.ts.map +1 -1
  114. package/lib/parsers/svelte.js +22 -25
  115. package/lib/parsers/svelte.js.map +1 -1
  116. package/lib/parsers/vue.d.ts +2 -2
  117. package/lib/parsers/vue.d.ts.map +1 -1
  118. package/lib/parsers/vue.js +14 -18
  119. package/lib/parsers/vue.js.map +1 -1
  120. package/lib/rules/enforce-canonical-classes.d.ts +146 -16
  121. package/lib/rules/enforce-canonical-classes.d.ts.map +1 -1
  122. package/lib/rules/enforce-consistent-class-order.d.ts +146 -16
  123. package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -1
  124. package/lib/rules/enforce-consistent-important-position.d.ts +146 -16
  125. package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -1
  126. package/lib/rules/enforce-consistent-line-wrapping.d.ts +146 -16
  127. package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
  128. package/lib/rules/enforce-consistent-variable-syntax.d.ts +148 -18
  129. package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
  130. package/lib/rules/enforce-shorthand-classes.d.ts +146 -16
  131. package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -1
  132. package/lib/rules/no-conflicting-classes.d.ts +146 -16
  133. package/lib/rules/no-conflicting-classes.d.ts.map +1 -1
  134. package/lib/rules/no-deprecated-classes.d.ts +146 -16
  135. package/lib/rules/no-deprecated-classes.d.ts.map +1 -1
  136. package/lib/rules/no-duplicate-classes.d.ts +146 -16
  137. package/lib/rules/no-duplicate-classes.d.ts.map +1 -1
  138. package/lib/rules/no-restricted-classes.d.ts +146 -16
  139. package/lib/rules/no-restricted-classes.d.ts.map +1 -1
  140. package/lib/rules/no-unknown-classes.d.ts +146 -16
  141. package/lib/rules/no-unknown-classes.d.ts.map +1 -1
  142. package/lib/rules/no-unnecessary-whitespace.d.ts +146 -16
  143. package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -1
  144. package/lib/types/rule.d.ts +39 -0
  145. package/lib/types/rule.d.ts.map +1 -1
  146. package/lib/types/rule.js +7 -0
  147. package/lib/types/rule.js.map +1 -1
  148. package/lib/utils/rule.d.ts.map +1 -1
  149. package/lib/utils/rule.js +42 -2
  150. package/lib/utils/rule.js.map +1 -1
  151. package/lib/utils/selectors.d.ts +3 -0
  152. package/lib/utils/selectors.d.ts.map +1 -0
  153. package/lib/utils/selectors.js +4 -0
  154. package/lib/utils/selectors.js.map +1 -0
  155. package/package.json +1 -1
@@ -11,7 +11,7 @@ export declare const enforceConsistentImportantPosition: {
11
11
  tailwindConfig?: string | undefined;
12
12
  messageStyle: "visual" | "compact" | "raw";
13
13
  entryPoint?: string | undefined;
14
- tags: (string | [string, ({
14
+ tags?: (string | [string, ({
15
15
  match: import("../types/rule.js").MatcherType.String;
16
16
  } | {
17
17
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -19,8 +19,8 @@ export declare const enforceConsistentImportantPosition: {
19
19
  } | {
20
20
  match: import("../types/rule.js").MatcherType.ObjectValue;
21
21
  pathPattern?: string | undefined;
22
- })[]])[];
23
- variables: (string | [string, ({
22
+ })[]])[] | undefined;
23
+ variables?: (string | [string, ({
24
24
  match: import("../types/rule.js").MatcherType.String;
25
25
  } | {
26
26
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -28,8 +28,8 @@ export declare const enforceConsistentImportantPosition: {
28
28
  } | {
29
29
  match: import("../types/rule.js").MatcherType.ObjectValue;
30
30
  pathPattern?: string | undefined;
31
- })[]])[];
32
- attributes: (string | [string, ({
31
+ })[]])[] | undefined;
32
+ attributes?: (string | [string, ({
33
33
  match: import("../types/rule.js").MatcherType.String;
34
34
  } | {
35
35
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -37,8 +37,8 @@ export declare const enforceConsistentImportantPosition: {
37
37
  } | {
38
38
  match: import("../types/rule.js").MatcherType.ObjectValue;
39
39
  pathPattern?: string | undefined;
40
- })[]])[];
41
- callees: (string | [string, ({
40
+ })[]])[] | undefined;
41
+ callees?: (string | [string, ({
42
42
  match: import("../types/rule.js").MatcherType.String;
43
43
  } | {
44
44
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -46,7 +46,72 @@ export declare const enforceConsistentImportantPosition: {
46
46
  } | {
47
47
  match: import("../types/rule.js").MatcherType.ObjectValue;
48
48
  pathPattern?: string | undefined;
49
- })[]])[];
49
+ })[]])[] | undefined;
50
+ selectors: ({
51
+ callTarget?: number | "all" | "first" | "last" | undefined;
52
+ kind: import("../types/rule.js").SelectorKind.Callee;
53
+ match?: ({
54
+ type: import("../types/rule.js").MatcherType.String;
55
+ } | {
56
+ path?: string | undefined;
57
+ type: import("../types/rule.js").MatcherType.ObjectKey;
58
+ } | {
59
+ path?: string | undefined;
60
+ type: import("../types/rule.js").MatcherType.ObjectValue;
61
+ })[] | undefined;
62
+ name: string;
63
+ path?: string | undefined;
64
+ } | {
65
+ callTarget?: number | "all" | "first" | "last" | undefined;
66
+ kind: import("../types/rule.js").SelectorKind.Callee;
67
+ match?: ({
68
+ type: import("../types/rule.js").MatcherType.String;
69
+ } | {
70
+ path?: string | undefined;
71
+ type: import("../types/rule.js").MatcherType.ObjectKey;
72
+ } | {
73
+ path?: string | undefined;
74
+ type: import("../types/rule.js").MatcherType.ObjectValue;
75
+ })[] | undefined;
76
+ name?: string | undefined;
77
+ path: string;
78
+ } | {
79
+ kind: import("../types/rule.js").SelectorKind.Attribute;
80
+ match?: ({
81
+ type: import("../types/rule.js").MatcherType.String;
82
+ } | {
83
+ path?: string | undefined;
84
+ type: import("../types/rule.js").MatcherType.ObjectKey;
85
+ } | {
86
+ path?: string | undefined;
87
+ type: import("../types/rule.js").MatcherType.ObjectValue;
88
+ })[] | undefined;
89
+ name: string;
90
+ } | {
91
+ kind: import("../types/rule.js").SelectorKind.Tag;
92
+ match?: ({
93
+ type: import("../types/rule.js").MatcherType.String;
94
+ } | {
95
+ path?: string | undefined;
96
+ type: import("../types/rule.js").MatcherType.ObjectKey;
97
+ } | {
98
+ path?: string | undefined;
99
+ type: import("../types/rule.js").MatcherType.ObjectValue;
100
+ })[] | undefined;
101
+ name: string;
102
+ } | {
103
+ kind: import("../types/rule.js").SelectorKind.Variable;
104
+ match?: ({
105
+ type: import("../types/rule.js").MatcherType.String;
106
+ } | {
107
+ path?: string | undefined;
108
+ type: import("../types/rule.js").MatcherType.ObjectKey;
109
+ } | {
110
+ path?: string | undefined;
111
+ type: import("../types/rule.js").MatcherType.ObjectValue;
112
+ })[] | undefined;
113
+ name: string;
114
+ })[];
50
115
  } & {
51
116
  position?: "recommended" | "legacy" | undefined;
52
117
  };
@@ -62,7 +127,7 @@ export declare const enforceConsistentImportantPosition: {
62
127
  tailwindConfig?: string | undefined;
63
128
  messageStyle: "visual" | "compact" | "raw";
64
129
  entryPoint?: string | undefined;
65
- tags: (string | [string, ({
130
+ tags?: (string | [string, ({
66
131
  match: import("../types/rule.js").MatcherType.String;
67
132
  } | {
68
133
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -70,8 +135,8 @@ export declare const enforceConsistentImportantPosition: {
70
135
  } | {
71
136
  match: import("../types/rule.js").MatcherType.ObjectValue;
72
137
  pathPattern?: string | undefined;
73
- })[]])[];
74
- variables: (string | [string, ({
138
+ })[]])[] | undefined;
139
+ variables?: (string | [string, ({
75
140
  match: import("../types/rule.js").MatcherType.String;
76
141
  } | {
77
142
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -79,8 +144,8 @@ export declare const enforceConsistentImportantPosition: {
79
144
  } | {
80
145
  match: import("../types/rule.js").MatcherType.ObjectValue;
81
146
  pathPattern?: string | undefined;
82
- })[]])[];
83
- attributes: (string | [string, ({
147
+ })[]])[] | undefined;
148
+ attributes?: (string | [string, ({
84
149
  match: import("../types/rule.js").MatcherType.String;
85
150
  } | {
86
151
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -88,8 +153,8 @@ export declare const enforceConsistentImportantPosition: {
88
153
  } | {
89
154
  match: import("../types/rule.js").MatcherType.ObjectValue;
90
155
  pathPattern?: string | undefined;
91
- })[]])[];
92
- callees: (string | [string, ({
156
+ })[]])[] | undefined;
157
+ callees?: (string | [string, ({
93
158
  match: import("../types/rule.js").MatcherType.String;
94
159
  } | {
95
160
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -97,7 +162,72 @@ export declare const enforceConsistentImportantPosition: {
97
162
  } | {
98
163
  match: import("../types/rule.js").MatcherType.ObjectValue;
99
164
  pathPattern?: string | undefined;
100
- })[]])[];
165
+ })[]])[] | undefined;
166
+ selectors: ({
167
+ callTarget?: number | "all" | "first" | "last" | undefined;
168
+ kind: import("../types/rule.js").SelectorKind.Callee;
169
+ match?: ({
170
+ type: import("../types/rule.js").MatcherType.String;
171
+ } | {
172
+ path?: string | undefined;
173
+ type: import("../types/rule.js").MatcherType.ObjectKey;
174
+ } | {
175
+ path?: string | undefined;
176
+ type: import("../types/rule.js").MatcherType.ObjectValue;
177
+ })[] | undefined;
178
+ name: string;
179
+ path?: string | undefined;
180
+ } | {
181
+ callTarget?: number | "all" | "first" | "last" | undefined;
182
+ kind: import("../types/rule.js").SelectorKind.Callee;
183
+ match?: ({
184
+ type: import("../types/rule.js").MatcherType.String;
185
+ } | {
186
+ path?: string | undefined;
187
+ type: import("../types/rule.js").MatcherType.ObjectKey;
188
+ } | {
189
+ path?: string | undefined;
190
+ type: import("../types/rule.js").MatcherType.ObjectValue;
191
+ })[] | undefined;
192
+ name?: string | undefined;
193
+ path: string;
194
+ } | {
195
+ kind: import("../types/rule.js").SelectorKind.Attribute;
196
+ match?: ({
197
+ type: import("../types/rule.js").MatcherType.String;
198
+ } | {
199
+ path?: string | undefined;
200
+ type: import("../types/rule.js").MatcherType.ObjectKey;
201
+ } | {
202
+ path?: string | undefined;
203
+ type: import("../types/rule.js").MatcherType.ObjectValue;
204
+ })[] | undefined;
205
+ name: string;
206
+ } | {
207
+ kind: import("../types/rule.js").SelectorKind.Tag;
208
+ match?: ({
209
+ type: import("../types/rule.js").MatcherType.String;
210
+ } | {
211
+ path?: string | undefined;
212
+ type: import("../types/rule.js").MatcherType.ObjectKey;
213
+ } | {
214
+ path?: string | undefined;
215
+ type: import("../types/rule.js").MatcherType.ObjectValue;
216
+ })[] | undefined;
217
+ name: string;
218
+ } | {
219
+ kind: import("../types/rule.js").SelectorKind.Variable;
220
+ match?: ({
221
+ type: import("../types/rule.js").MatcherType.String;
222
+ } | {
223
+ path?: string | undefined;
224
+ type: import("../types/rule.js").MatcherType.ObjectKey;
225
+ } | {
226
+ path?: string | undefined;
227
+ type: import("../types/rule.js").MatcherType.ObjectValue;
228
+ })[] | undefined;
229
+ name: string;
230
+ })[];
101
231
  } & {
102
232
  position?: "recommended" | "legacy" | undefined;
103
233
  }>];
@@ -1 +1 @@
1
- {"version":3,"file":"enforce-consistent-important-position.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-important-position.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF7C,CAAC"}
1
+ {"version":3,"file":"enforce-consistent-important-position.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-important-position.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF7C,CAAC"}
@@ -12,7 +12,7 @@ export declare const enforceConsistentLineWrapping: {
12
12
  tailwindConfig?: string | undefined;
13
13
  messageStyle: "visual" | "compact" | "raw";
14
14
  entryPoint?: string | undefined;
15
- tags: (string | [string, ({
15
+ tags?: (string | [string, ({
16
16
  match: import("../types/rule.js").MatcherType.String;
17
17
  } | {
18
18
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -20,8 +20,8 @@ export declare const enforceConsistentLineWrapping: {
20
20
  } | {
21
21
  match: import("../types/rule.js").MatcherType.ObjectValue;
22
22
  pathPattern?: string | undefined;
23
- })[]])[];
24
- variables: (string | [string, ({
23
+ })[]])[] | undefined;
24
+ variables?: (string | [string, ({
25
25
  match: import("../types/rule.js").MatcherType.String;
26
26
  } | {
27
27
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -29,8 +29,8 @@ export declare const enforceConsistentLineWrapping: {
29
29
  } | {
30
30
  match: import("../types/rule.js").MatcherType.ObjectValue;
31
31
  pathPattern?: string | undefined;
32
- })[]])[];
33
- attributes: (string | [string, ({
32
+ })[]])[] | undefined;
33
+ attributes?: (string | [string, ({
34
34
  match: import("../types/rule.js").MatcherType.String;
35
35
  } | {
36
36
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -38,8 +38,8 @@ export declare const enforceConsistentLineWrapping: {
38
38
  } | {
39
39
  match: import("../types/rule.js").MatcherType.ObjectValue;
40
40
  pathPattern?: string | undefined;
41
- })[]])[];
42
- callees: (string | [string, ({
41
+ })[]])[] | undefined;
42
+ callees?: (string | [string, ({
43
43
  match: import("../types/rule.js").MatcherType.String;
44
44
  } | {
45
45
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -47,7 +47,72 @@ export declare const enforceConsistentLineWrapping: {
47
47
  } | {
48
48
  match: import("../types/rule.js").MatcherType.ObjectValue;
49
49
  pathPattern?: string | undefined;
50
- })[]])[];
50
+ })[]])[] | undefined;
51
+ selectors: ({
52
+ callTarget?: number | "all" | "first" | "last" | undefined;
53
+ kind: import("../types/rule.js").SelectorKind.Callee;
54
+ match?: ({
55
+ type: import("../types/rule.js").MatcherType.String;
56
+ } | {
57
+ path?: string | undefined;
58
+ type: import("../types/rule.js").MatcherType.ObjectKey;
59
+ } | {
60
+ path?: string | undefined;
61
+ type: import("../types/rule.js").MatcherType.ObjectValue;
62
+ })[] | undefined;
63
+ name: string;
64
+ path?: string | undefined;
65
+ } | {
66
+ callTarget?: number | "all" | "first" | "last" | undefined;
67
+ kind: import("../types/rule.js").SelectorKind.Callee;
68
+ match?: ({
69
+ type: import("../types/rule.js").MatcherType.String;
70
+ } | {
71
+ path?: string | undefined;
72
+ type: import("../types/rule.js").MatcherType.ObjectKey;
73
+ } | {
74
+ path?: string | undefined;
75
+ type: import("../types/rule.js").MatcherType.ObjectValue;
76
+ })[] | undefined;
77
+ name?: string | undefined;
78
+ path: string;
79
+ } | {
80
+ kind: import("../types/rule.js").SelectorKind.Attribute;
81
+ match?: ({
82
+ type: import("../types/rule.js").MatcherType.String;
83
+ } | {
84
+ path?: string | undefined;
85
+ type: import("../types/rule.js").MatcherType.ObjectKey;
86
+ } | {
87
+ path?: string | undefined;
88
+ type: import("../types/rule.js").MatcherType.ObjectValue;
89
+ })[] | undefined;
90
+ name: string;
91
+ } | {
92
+ kind: import("../types/rule.js").SelectorKind.Tag;
93
+ match?: ({
94
+ type: import("../types/rule.js").MatcherType.String;
95
+ } | {
96
+ path?: string | undefined;
97
+ type: import("../types/rule.js").MatcherType.ObjectKey;
98
+ } | {
99
+ path?: string | undefined;
100
+ type: import("../types/rule.js").MatcherType.ObjectValue;
101
+ })[] | undefined;
102
+ name: string;
103
+ } | {
104
+ kind: import("../types/rule.js").SelectorKind.Variable;
105
+ match?: ({
106
+ type: import("../types/rule.js").MatcherType.String;
107
+ } | {
108
+ path?: string | undefined;
109
+ type: import("../types/rule.js").MatcherType.ObjectKey;
110
+ } | {
111
+ path?: string | undefined;
112
+ type: import("../types/rule.js").MatcherType.ObjectValue;
113
+ })[] | undefined;
114
+ name: string;
115
+ })[];
51
116
  } & {
52
117
  classesPerLine: number;
53
118
  group: "never" | "newLine" | "emptyLine";
@@ -69,7 +134,7 @@ export declare const enforceConsistentLineWrapping: {
69
134
  tailwindConfig?: string | undefined;
70
135
  messageStyle: "visual" | "compact" | "raw";
71
136
  entryPoint?: string | undefined;
72
- tags: (string | [string, ({
137
+ tags?: (string | [string, ({
73
138
  match: import("../types/rule.js").MatcherType.String;
74
139
  } | {
75
140
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -77,8 +142,8 @@ export declare const enforceConsistentLineWrapping: {
77
142
  } | {
78
143
  match: import("../types/rule.js").MatcherType.ObjectValue;
79
144
  pathPattern?: string | undefined;
80
- })[]])[];
81
- variables: (string | [string, ({
145
+ })[]])[] | undefined;
146
+ variables?: (string | [string, ({
82
147
  match: import("../types/rule.js").MatcherType.String;
83
148
  } | {
84
149
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -86,8 +151,8 @@ export declare const enforceConsistentLineWrapping: {
86
151
  } | {
87
152
  match: import("../types/rule.js").MatcherType.ObjectValue;
88
153
  pathPattern?: string | undefined;
89
- })[]])[];
90
- attributes: (string | [string, ({
154
+ })[]])[] | undefined;
155
+ attributes?: (string | [string, ({
91
156
  match: import("../types/rule.js").MatcherType.String;
92
157
  } | {
93
158
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -95,8 +160,8 @@ export declare const enforceConsistentLineWrapping: {
95
160
  } | {
96
161
  match: import("../types/rule.js").MatcherType.ObjectValue;
97
162
  pathPattern?: string | undefined;
98
- })[]])[];
99
- callees: (string | [string, ({
163
+ })[]])[] | undefined;
164
+ callees?: (string | [string, ({
100
165
  match: import("../types/rule.js").MatcherType.String;
101
166
  } | {
102
167
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -104,7 +169,72 @@ export declare const enforceConsistentLineWrapping: {
104
169
  } | {
105
170
  match: import("../types/rule.js").MatcherType.ObjectValue;
106
171
  pathPattern?: string | undefined;
107
- })[]])[];
172
+ })[]])[] | undefined;
173
+ selectors: ({
174
+ callTarget?: number | "all" | "first" | "last" | undefined;
175
+ kind: import("../types/rule.js").SelectorKind.Callee;
176
+ match?: ({
177
+ type: import("../types/rule.js").MatcherType.String;
178
+ } | {
179
+ path?: string | undefined;
180
+ type: import("../types/rule.js").MatcherType.ObjectKey;
181
+ } | {
182
+ path?: string | undefined;
183
+ type: import("../types/rule.js").MatcherType.ObjectValue;
184
+ })[] | undefined;
185
+ name: string;
186
+ path?: string | undefined;
187
+ } | {
188
+ callTarget?: number | "all" | "first" | "last" | undefined;
189
+ kind: import("../types/rule.js").SelectorKind.Callee;
190
+ match?: ({
191
+ type: import("../types/rule.js").MatcherType.String;
192
+ } | {
193
+ path?: string | undefined;
194
+ type: import("../types/rule.js").MatcherType.ObjectKey;
195
+ } | {
196
+ path?: string | undefined;
197
+ type: import("../types/rule.js").MatcherType.ObjectValue;
198
+ })[] | undefined;
199
+ name?: string | undefined;
200
+ path: string;
201
+ } | {
202
+ kind: import("../types/rule.js").SelectorKind.Attribute;
203
+ match?: ({
204
+ type: import("../types/rule.js").MatcherType.String;
205
+ } | {
206
+ path?: string | undefined;
207
+ type: import("../types/rule.js").MatcherType.ObjectKey;
208
+ } | {
209
+ path?: string | undefined;
210
+ type: import("../types/rule.js").MatcherType.ObjectValue;
211
+ })[] | undefined;
212
+ name: string;
213
+ } | {
214
+ kind: import("../types/rule.js").SelectorKind.Tag;
215
+ match?: ({
216
+ type: import("../types/rule.js").MatcherType.String;
217
+ } | {
218
+ path?: string | undefined;
219
+ type: import("../types/rule.js").MatcherType.ObjectKey;
220
+ } | {
221
+ path?: string | undefined;
222
+ type: import("../types/rule.js").MatcherType.ObjectValue;
223
+ })[] | undefined;
224
+ name: string;
225
+ } | {
226
+ kind: import("../types/rule.js").SelectorKind.Variable;
227
+ match?: ({
228
+ type: import("../types/rule.js").MatcherType.String;
229
+ } | {
230
+ path?: string | undefined;
231
+ type: import("../types/rule.js").MatcherType.ObjectKey;
232
+ } | {
233
+ path?: string | undefined;
234
+ type: import("../types/rule.js").MatcherType.ObjectValue;
235
+ })[] | undefined;
236
+ name: string;
237
+ })[];
108
238
  } & {
109
239
  classesPerLine: number;
110
240
  group: "never" | "newLine" | "emptyLine";
@@ -1 +1 @@
1
- {"version":3,"file":"enforce-consistent-line-wrapping.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-line-wrapping.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFxC,CAAC"}
1
+ {"version":3,"file":"enforce-consistent-line-wrapping.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-line-wrapping.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFxC,CAAC"}