eslint-plugin-better-tailwindcss 4.3.2 → 4.4.1

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 (178) hide show
  1. package/README.md +35 -0
  2. package/lib/api/defaults.d.ts +15 -0
  3. package/lib/api/defaults.d.ts.map +1 -1
  4. package/lib/api/types.d.ts +7 -2
  5. package/lib/api/types.d.ts.map +1 -1
  6. package/lib/api/types.js +4 -1
  7. package/lib/api/types.js.map +1 -1
  8. package/lib/async-utils/escape.d.ts.map +1 -1
  9. package/lib/async-utils/escape.js +2 -1
  10. package/lib/async-utils/escape.js.map +1 -1
  11. package/lib/async-utils/fs.d.ts +1 -1
  12. package/lib/async-utils/fs.d.ts.map +1 -1
  13. package/lib/async-utils/fs.js +2 -6
  14. package/lib/async-utils/fs.js.map +1 -1
  15. package/lib/async-utils/operations.d.ts +2 -0
  16. package/lib/async-utils/operations.d.ts.map +1 -1
  17. package/lib/async-utils/regex.d.ts +3 -0
  18. package/lib/async-utils/regex.d.ts.map +1 -0
  19. package/lib/async-utils/regex.js +32 -0
  20. package/lib/async-utils/regex.js.map +1 -0
  21. package/lib/async-utils/worker.d.ts.map +1 -1
  22. package/lib/async-utils/worker.js +3 -2
  23. package/lib/async-utils/worker.js.map +1 -1
  24. package/lib/configs/config.d.ts +2921 -33
  25. package/lib/configs/config.d.ts.map +1 -1
  26. package/lib/configs/config.js +4 -0
  27. package/lib/configs/config.js.map +1 -1
  28. package/lib/options/callees/cc.js +2 -2
  29. package/lib/options/callees/cc.js.map +1 -1
  30. package/lib/options/callees/clb.js +3 -3
  31. package/lib/options/callees/clb.js.map +1 -1
  32. package/lib/options/callees/clsx.js +2 -2
  33. package/lib/options/callees/clsx.js.map +1 -1
  34. package/lib/options/callees/cn.js +2 -2
  35. package/lib/options/callees/cn.js.map +1 -1
  36. package/lib/options/callees/cnb.js +2 -2
  37. package/lib/options/callees/cnb.js.map +1 -1
  38. package/lib/options/callees/ctl.js +1 -1
  39. package/lib/options/callees/ctl.js.map +1 -1
  40. package/lib/options/callees/cva.js +3 -3
  41. package/lib/options/callees/cva.js.map +1 -1
  42. package/lib/options/callees/cx.js +2 -2
  43. package/lib/options/callees/cx.js.map +1 -1
  44. package/lib/options/callees/dcnb.js +2 -2
  45. package/lib/options/callees/dcnb.js.map +1 -1
  46. package/lib/options/callees/objstr.js +2 -2
  47. package/lib/options/callees/objstr.js.map +1 -1
  48. package/lib/options/callees/tv.js +6 -6
  49. package/lib/options/callees/tv.js.map +1 -1
  50. package/lib/options/callees/twJoin.js +1 -1
  51. package/lib/options/callees/twJoin.js.map +1 -1
  52. package/lib/options/callees/twMerge.js +1 -1
  53. package/lib/options/callees/twMerge.js.map +1 -1
  54. package/lib/options/default-options.d.ts +31 -1
  55. package/lib/options/default-options.d.ts.map +1 -1
  56. package/lib/options/default-options.js +9 -3
  57. package/lib/options/default-options.js.map +1 -1
  58. package/lib/options/descriptions.d.ts +308 -2
  59. package/lib/options/descriptions.d.ts.map +1 -1
  60. package/lib/options/descriptions.js +3 -2
  61. package/lib/options/descriptions.js.map +1 -1
  62. package/lib/options/migrate.js +29 -12
  63. package/lib/options/migrate.js.map +1 -1
  64. package/lib/options/schemas/common.d.ts +4 -0
  65. package/lib/options/schemas/common.d.ts.map +1 -1
  66. package/lib/options/schemas/common.js +3 -0
  67. package/lib/options/schemas/common.js.map +1 -1
  68. package/lib/options/schemas/selectors.d.ts +806 -5
  69. package/lib/options/schemas/selectors.d.ts.map +1 -1
  70. package/lib/options/schemas/selectors.js +42 -11
  71. package/lib/options/schemas/selectors.js.map +1 -1
  72. package/lib/options/tags/twc.d.ts +36 -0
  73. package/lib/options/tags/twc.d.ts.map +1 -0
  74. package/lib/options/tags/twc.js +26 -0
  75. package/lib/options/tags/twc.js.map +1 -0
  76. package/lib/options/tags/twx.d.ts +36 -0
  77. package/lib/options/tags/twx.d.ts.map +1 -0
  78. package/lib/options/tags/twx.js +26 -0
  79. package/lib/options/tags/twx.js.map +1 -0
  80. package/lib/parsers/angular.d.ts.map +1 -1
  81. package/lib/parsers/angular.js +22 -12
  82. package/lib/parsers/angular.js.map +1 -1
  83. package/lib/parsers/es.d.ts +11 -2
  84. package/lib/parsers/es.d.ts.map +1 -1
  85. package/lib/parsers/es.js +249 -55
  86. package/lib/parsers/es.js.map +1 -1
  87. package/lib/parsers/svelte.d.ts.map +1 -1
  88. package/lib/parsers/svelte.js +6 -64
  89. package/lib/parsers/svelte.js.map +1 -1
  90. package/lib/parsers/vue.d.ts.map +1 -1
  91. package/lib/parsers/vue.js +5 -65
  92. package/lib/parsers/vue.js.map +1 -1
  93. package/lib/rules/enforce-canonical-classes.d.ts +172 -2
  94. package/lib/rules/enforce-canonical-classes.d.ts.map +1 -1
  95. package/lib/rules/enforce-consistent-class-order.d.ts +172 -2
  96. package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -1
  97. package/lib/rules/enforce-consistent-class-order.js +14 -2
  98. package/lib/rules/enforce-consistent-class-order.js.map +1 -1
  99. package/lib/rules/enforce-consistent-important-position.d.ts +172 -2
  100. package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -1
  101. package/lib/rules/enforce-consistent-important-position.js +2 -1
  102. package/lib/rules/enforce-consistent-important-position.js.map +1 -1
  103. package/lib/rules/enforce-consistent-line-wrapping.d.ts +172 -2
  104. package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
  105. package/lib/rules/enforce-consistent-line-wrapping.js +30 -0
  106. package/lib/rules/enforce-consistent-line-wrapping.js.map +1 -1
  107. package/lib/rules/enforce-consistent-variable-syntax.d.ts +172 -2
  108. package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
  109. package/lib/rules/enforce-consistent-variable-syntax.js +3 -2
  110. package/lib/rules/enforce-consistent-variable-syntax.js.map +1 -1
  111. package/lib/rules/enforce-consistent-variant-order.d.ts +426 -0
  112. package/lib/rules/enforce-consistent-variant-order.d.ts.map +1 -0
  113. package/lib/rules/enforce-consistent-variant-order.js +75 -0
  114. package/lib/rules/enforce-consistent-variant-order.js.map +1 -0
  115. package/lib/rules/enforce-logical-properties.d.ts +426 -0
  116. package/lib/rules/enforce-logical-properties.d.ts.map +1 -0
  117. package/lib/rules/enforce-logical-properties.js +118 -0
  118. package/lib/rules/enforce-logical-properties.js.map +1 -0
  119. package/lib/rules/enforce-shorthand-classes.d.ts +172 -2
  120. package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -1
  121. package/lib/rules/no-conflicting-classes.d.ts +172 -2
  122. package/lib/rules/no-conflicting-classes.d.ts.map +1 -1
  123. package/lib/rules/no-deprecated-classes.d.ts +173 -3
  124. package/lib/rules/no-deprecated-classes.d.ts.map +1 -1
  125. package/lib/rules/no-duplicate-classes.d.ts +172 -2
  126. package/lib/rules/no-duplicate-classes.d.ts.map +1 -1
  127. package/lib/rules/no-restricted-classes.d.ts +172 -2
  128. package/lib/rules/no-restricted-classes.d.ts.map +1 -1
  129. package/lib/rules/no-unknown-classes.d.ts +172 -2
  130. package/lib/rules/no-unknown-classes.d.ts.map +1 -1
  131. package/lib/rules/no-unknown-classes.js +8 -7
  132. package/lib/rules/no-unknown-classes.js.map +1 -1
  133. package/lib/rules/no-unnecessary-whitespace.d.ts +172 -2
  134. package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -1
  135. package/lib/tailwindcss/dissect-classes.async.v3.d.ts.map +1 -1
  136. package/lib/tailwindcss/dissect-classes.async.v3.js +4 -3
  137. package/lib/tailwindcss/dissect-classes.async.v3.js.map +1 -1
  138. package/lib/tailwindcss/dissect-classes.async.v4.d.ts.map +1 -1
  139. package/lib/tailwindcss/dissect-classes.async.v4.js +6 -5
  140. package/lib/tailwindcss/dissect-classes.async.v4.js.map +1 -1
  141. package/lib/tailwindcss/tailwind.async.worker.v3.js +5 -0
  142. package/lib/tailwindcss/tailwind.async.worker.v3.js.map +1 -1
  143. package/lib/tailwindcss/tailwind.async.worker.v4.js +6 -0
  144. package/lib/tailwindcss/tailwind.async.worker.v4.js.map +1 -1
  145. package/lib/tailwindcss/variant-order.async.v3.d.ts +3 -0
  146. package/lib/tailwindcss/variant-order.async.v3.d.ts.map +1 -0
  147. package/lib/tailwindcss/variant-order.async.v3.js +4 -0
  148. package/lib/tailwindcss/variant-order.async.v3.js.map +1 -0
  149. package/lib/tailwindcss/variant-order.async.v4.d.ts +3 -0
  150. package/lib/tailwindcss/variant-order.async.v4.d.ts.map +1 -0
  151. package/lib/tailwindcss/variant-order.async.v4.js +18 -0
  152. package/lib/tailwindcss/variant-order.async.v4.js.map +1 -0
  153. package/lib/tailwindcss/variant-order.d.ts +11 -0
  154. package/lib/tailwindcss/variant-order.d.ts.map +1 -0
  155. package/lib/tailwindcss/variant-order.js +15 -0
  156. package/lib/tailwindcss/variant-order.js.map +1 -0
  157. package/lib/types/rule.d.ts +27 -5
  158. package/lib/types/rule.d.ts.map +1 -1
  159. package/lib/types/rule.js +7 -0
  160. package/lib/types/rule.js.map +1 -1
  161. package/lib/utils/context.js +5 -5
  162. package/lib/utils/context.js.map +1 -1
  163. package/lib/utils/matchers.d.ts +1 -3
  164. package/lib/utils/matchers.d.ts.map +1 -1
  165. package/lib/utils/matchers.js +56 -37
  166. package/lib/utils/matchers.js.map +1 -1
  167. package/lib/utils/project.d.ts +4 -0
  168. package/lib/utils/project.d.ts.map +1 -0
  169. package/lib/utils/project.js +22 -0
  170. package/lib/utils/project.js.map +1 -0
  171. package/lib/utils/rule.d.ts +1 -1
  172. package/lib/utils/rule.d.ts.map +1 -1
  173. package/lib/utils/rule.js +50 -10
  174. package/lib/utils/rule.js.map +1 -1
  175. package/lib/utils/utils.d.ts.map +1 -1
  176. package/lib/utils/utils.js +6 -5
  177. package/lib/utils/utils.js.map +1 -1
  178. package/package.json +22 -21
@@ -6,6 +6,7 @@ export declare const noDeprecatedClasses: {
6
6
  } | undefined;
7
7
  name: "no-deprecated-classes";
8
8
  readonly options: {
9
+ cwd?: string | undefined;
9
10
  rootFontSize?: number | undefined;
10
11
  detectComponentClasses: boolean;
11
12
  tsconfig?: string | undefined;
@@ -59,9 +60,22 @@ export declare const noDeprecatedClasses: {
59
60
  } | {
60
61
  path?: string | undefined;
61
62
  type: import("../types/rule.js").MatcherType.ObjectValue;
63
+ } | {
64
+ match: ({
65
+ type: import("../types/rule.js").MatcherType.String;
66
+ } | {
67
+ path?: string | undefined;
68
+ type: import("../types/rule.js").MatcherType.ObjectKey;
69
+ } | {
70
+ path?: string | undefined;
71
+ type: import("../types/rule.js").MatcherType.ObjectValue;
72
+ })[];
73
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
62
74
  })[] | undefined;
63
75
  name: string;
64
76
  path?: string | undefined;
77
+ targetArgument?: number | "all" | "first" | "last" | undefined;
78
+ targetCall?: number | "all" | "first" | "last" | undefined;
65
79
  } | {
66
80
  callTarget?: number | "all" | "first" | "last" | undefined;
67
81
  kind: import("../types/rule.js").SelectorKind.Callee;
@@ -73,11 +87,24 @@ export declare const noDeprecatedClasses: {
73
87
  } | {
74
88
  path?: string | undefined;
75
89
  type: import("../types/rule.js").MatcherType.ObjectValue;
90
+ } | {
91
+ match: ({
92
+ type: import("../types/rule.js").MatcherType.String;
93
+ } | {
94
+ path?: string | undefined;
95
+ type: import("../types/rule.js").MatcherType.ObjectKey;
96
+ } | {
97
+ path?: string | undefined;
98
+ type: import("../types/rule.js").MatcherType.ObjectValue;
99
+ })[];
100
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
76
101
  })[] | undefined;
77
102
  name?: string | undefined;
78
103
  path: string;
104
+ targetArgument?: number | "all" | "first" | "last" | undefined;
105
+ targetCall?: number | "all" | "first" | "last" | undefined;
79
106
  } | {
80
- kind: import("../types/rule.js").SelectorKind.Attribute;
107
+ kind: import("../types/rule.js").SelectorKind.Tag;
81
108
  match?: ({
82
109
  type: import("../types/rule.js").MatcherType.String;
83
110
  } | {
@@ -86,8 +113,20 @@ export declare const noDeprecatedClasses: {
86
113
  } | {
87
114
  path?: string | undefined;
88
115
  type: import("../types/rule.js").MatcherType.ObjectValue;
116
+ } | {
117
+ match: ({
118
+ type: import("../types/rule.js").MatcherType.String;
119
+ } | {
120
+ path?: string | undefined;
121
+ type: import("../types/rule.js").MatcherType.ObjectKey;
122
+ } | {
123
+ path?: string | undefined;
124
+ type: import("../types/rule.js").MatcherType.ObjectValue;
125
+ })[];
126
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
89
127
  })[] | undefined;
90
128
  name: string;
129
+ path?: string | undefined;
91
130
  } | {
92
131
  kind: import("../types/rule.js").SelectorKind.Tag;
93
132
  match?: ({
@@ -98,6 +137,41 @@ export declare const noDeprecatedClasses: {
98
137
  } | {
99
138
  path?: string | undefined;
100
139
  type: import("../types/rule.js").MatcherType.ObjectValue;
140
+ } | {
141
+ match: ({
142
+ type: import("../types/rule.js").MatcherType.String;
143
+ } | {
144
+ path?: string | undefined;
145
+ type: import("../types/rule.js").MatcherType.ObjectKey;
146
+ } | {
147
+ path?: string | undefined;
148
+ type: import("../types/rule.js").MatcherType.ObjectValue;
149
+ })[];
150
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
151
+ })[] | undefined;
152
+ name?: string | undefined;
153
+ path: string;
154
+ } | {
155
+ kind: import("../types/rule.js").SelectorKind.Attribute;
156
+ match?: ({
157
+ type: import("../types/rule.js").MatcherType.String;
158
+ } | {
159
+ path?: string | undefined;
160
+ type: import("../types/rule.js").MatcherType.ObjectKey;
161
+ } | {
162
+ path?: string | undefined;
163
+ type: import("../types/rule.js").MatcherType.ObjectValue;
164
+ } | {
165
+ match: ({
166
+ type: import("../types/rule.js").MatcherType.String;
167
+ } | {
168
+ path?: string | undefined;
169
+ type: import("../types/rule.js").MatcherType.ObjectKey;
170
+ } | {
171
+ path?: string | undefined;
172
+ type: import("../types/rule.js").MatcherType.ObjectValue;
173
+ })[];
174
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
101
175
  })[] | undefined;
102
176
  name: string;
103
177
  } | {
@@ -110,6 +184,17 @@ export declare const noDeprecatedClasses: {
110
184
  } | {
111
185
  path?: string | undefined;
112
186
  type: import("../types/rule.js").MatcherType.ObjectValue;
187
+ } | {
188
+ match: ({
189
+ type: import("../types/rule.js").MatcherType.String;
190
+ } | {
191
+ path?: string | undefined;
192
+ type: import("../types/rule.js").MatcherType.ObjectKey;
193
+ } | {
194
+ path?: string | undefined;
195
+ type: import("../types/rule.js").MatcherType.ObjectValue;
196
+ })[];
197
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
113
198
  })[] | undefined;
114
199
  name: string;
115
200
  })[];
@@ -122,6 +207,7 @@ export declare const noDeprecatedClasses: {
122
207
  LangOptions: import("eslint").Linter.LanguageOptions;
123
208
  Code: import("eslint").SourceCode;
124
209
  RuleOptions: [Required<{
210
+ cwd?: string | undefined;
125
211
  rootFontSize?: number | undefined;
126
212
  detectComponentClasses: boolean;
127
213
  tsconfig?: string | undefined;
@@ -175,9 +261,22 @@ export declare const noDeprecatedClasses: {
175
261
  } | {
176
262
  path?: string | undefined;
177
263
  type: import("../types/rule.js").MatcherType.ObjectValue;
264
+ } | {
265
+ match: ({
266
+ type: import("../types/rule.js").MatcherType.String;
267
+ } | {
268
+ path?: string | undefined;
269
+ type: import("../types/rule.js").MatcherType.ObjectKey;
270
+ } | {
271
+ path?: string | undefined;
272
+ type: import("../types/rule.js").MatcherType.ObjectValue;
273
+ })[];
274
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
178
275
  })[] | undefined;
179
276
  name: string;
180
277
  path?: string | undefined;
278
+ targetArgument?: number | "all" | "first" | "last" | undefined;
279
+ targetCall?: number | "all" | "first" | "last" | undefined;
181
280
  } | {
182
281
  callTarget?: number | "all" | "first" | "last" | undefined;
183
282
  kind: import("../types/rule.js").SelectorKind.Callee;
@@ -189,11 +288,24 @@ export declare const noDeprecatedClasses: {
189
288
  } | {
190
289
  path?: string | undefined;
191
290
  type: import("../types/rule.js").MatcherType.ObjectValue;
291
+ } | {
292
+ match: ({
293
+ type: import("../types/rule.js").MatcherType.String;
294
+ } | {
295
+ path?: string | undefined;
296
+ type: import("../types/rule.js").MatcherType.ObjectKey;
297
+ } | {
298
+ path?: string | undefined;
299
+ type: import("../types/rule.js").MatcherType.ObjectValue;
300
+ })[];
301
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
192
302
  })[] | undefined;
193
303
  name?: string | undefined;
194
304
  path: string;
305
+ targetArgument?: number | "all" | "first" | "last" | undefined;
306
+ targetCall?: number | "all" | "first" | "last" | undefined;
195
307
  } | {
196
- kind: import("../types/rule.js").SelectorKind.Attribute;
308
+ kind: import("../types/rule.js").SelectorKind.Tag;
197
309
  match?: ({
198
310
  type: import("../types/rule.js").MatcherType.String;
199
311
  } | {
@@ -202,8 +314,20 @@ export declare const noDeprecatedClasses: {
202
314
  } | {
203
315
  path?: string | undefined;
204
316
  type: import("../types/rule.js").MatcherType.ObjectValue;
317
+ } | {
318
+ match: ({
319
+ type: import("../types/rule.js").MatcherType.String;
320
+ } | {
321
+ path?: string | undefined;
322
+ type: import("../types/rule.js").MatcherType.ObjectKey;
323
+ } | {
324
+ path?: string | undefined;
325
+ type: import("../types/rule.js").MatcherType.ObjectValue;
326
+ })[];
327
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
205
328
  })[] | undefined;
206
329
  name: string;
330
+ path?: string | undefined;
207
331
  } | {
208
332
  kind: import("../types/rule.js").SelectorKind.Tag;
209
333
  match?: ({
@@ -214,6 +338,41 @@ export declare const noDeprecatedClasses: {
214
338
  } | {
215
339
  path?: string | undefined;
216
340
  type: import("../types/rule.js").MatcherType.ObjectValue;
341
+ } | {
342
+ match: ({
343
+ type: import("../types/rule.js").MatcherType.String;
344
+ } | {
345
+ path?: string | undefined;
346
+ type: import("../types/rule.js").MatcherType.ObjectKey;
347
+ } | {
348
+ path?: string | undefined;
349
+ type: import("../types/rule.js").MatcherType.ObjectValue;
350
+ })[];
351
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
352
+ })[] | undefined;
353
+ name?: string | undefined;
354
+ path: string;
355
+ } | {
356
+ kind: import("../types/rule.js").SelectorKind.Attribute;
357
+ match?: ({
358
+ type: import("../types/rule.js").MatcherType.String;
359
+ } | {
360
+ path?: string | undefined;
361
+ type: import("../types/rule.js").MatcherType.ObjectKey;
362
+ } | {
363
+ path?: string | undefined;
364
+ type: import("../types/rule.js").MatcherType.ObjectValue;
365
+ } | {
366
+ match: ({
367
+ type: import("../types/rule.js").MatcherType.String;
368
+ } | {
369
+ path?: string | undefined;
370
+ type: import("../types/rule.js").MatcherType.ObjectKey;
371
+ } | {
372
+ path?: string | undefined;
373
+ type: import("../types/rule.js").MatcherType.ObjectValue;
374
+ })[];
375
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
217
376
  })[] | undefined;
218
377
  name: string;
219
378
  } | {
@@ -226,6 +385,17 @@ export declare const noDeprecatedClasses: {
226
385
  } | {
227
386
  path?: string | undefined;
228
387
  type: import("../types/rule.js").MatcherType.ObjectValue;
388
+ } | {
389
+ match: ({
390
+ type: import("../types/rule.js").MatcherType.String;
391
+ } | {
392
+ path?: string | undefined;
393
+ type: import("../types/rule.js").MatcherType.ObjectKey;
394
+ } | {
395
+ path?: string | undefined;
396
+ type: import("../types/rule.js").MatcherType.ObjectValue;
397
+ })[];
398
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
229
399
  })[] | undefined;
230
400
  name: string;
231
401
  })[];
@@ -233,7 +403,7 @@ export declare const noDeprecatedClasses: {
233
403
  [x: string]: unknown;
234
404
  }>];
235
405
  Node: import("eslint").JSSyntaxElement;
236
- MessageIds: "irreplaceable" | "replaceable";
406
+ MessageIds: "replaceable" | "irreplaceable";
237
407
  }>) => import("eslint").Rule.RuleListener;
238
408
  meta: {
239
409
  messages?: {
@@ -1 +1 @@
1
- {"version":3,"file":"no-deprecated-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-deprecated-classes.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB9B,CAAC"}
1
+ {"version":3,"file":"no-deprecated-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-deprecated-classes.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB9B,CAAC"}
@@ -5,6 +5,7 @@ export declare const noDuplicateClasses: {
5
5
  } | undefined;
6
6
  name: "no-duplicate-classes";
7
7
  readonly options: {
8
+ cwd?: string | undefined;
8
9
  rootFontSize?: number | undefined;
9
10
  detectComponentClasses: boolean;
10
11
  tsconfig?: string | undefined;
@@ -58,9 +59,22 @@ export declare const noDuplicateClasses: {
58
59
  } | {
59
60
  path?: string | undefined;
60
61
  type: import("../types/rule.js").MatcherType.ObjectValue;
62
+ } | {
63
+ match: ({
64
+ type: import("../types/rule.js").MatcherType.String;
65
+ } | {
66
+ path?: string | undefined;
67
+ type: import("../types/rule.js").MatcherType.ObjectKey;
68
+ } | {
69
+ path?: string | undefined;
70
+ type: import("../types/rule.js").MatcherType.ObjectValue;
71
+ })[];
72
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
61
73
  })[] | undefined;
62
74
  name: string;
63
75
  path?: string | undefined;
76
+ targetArgument?: number | "all" | "first" | "last" | undefined;
77
+ targetCall?: number | "all" | "first" | "last" | undefined;
64
78
  } | {
65
79
  callTarget?: number | "all" | "first" | "last" | undefined;
66
80
  kind: import("../types/rule.js").SelectorKind.Callee;
@@ -72,11 +86,24 @@ export declare const noDuplicateClasses: {
72
86
  } | {
73
87
  path?: string | undefined;
74
88
  type: import("../types/rule.js").MatcherType.ObjectValue;
89
+ } | {
90
+ match: ({
91
+ type: import("../types/rule.js").MatcherType.String;
92
+ } | {
93
+ path?: string | undefined;
94
+ type: import("../types/rule.js").MatcherType.ObjectKey;
95
+ } | {
96
+ path?: string | undefined;
97
+ type: import("../types/rule.js").MatcherType.ObjectValue;
98
+ })[];
99
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
75
100
  })[] | undefined;
76
101
  name?: string | undefined;
77
102
  path: string;
103
+ targetArgument?: number | "all" | "first" | "last" | undefined;
104
+ targetCall?: number | "all" | "first" | "last" | undefined;
78
105
  } | {
79
- kind: import("../types/rule.js").SelectorKind.Attribute;
106
+ kind: import("../types/rule.js").SelectorKind.Tag;
80
107
  match?: ({
81
108
  type: import("../types/rule.js").MatcherType.String;
82
109
  } | {
@@ -85,8 +112,20 @@ export declare const noDuplicateClasses: {
85
112
  } | {
86
113
  path?: string | undefined;
87
114
  type: import("../types/rule.js").MatcherType.ObjectValue;
115
+ } | {
116
+ match: ({
117
+ type: import("../types/rule.js").MatcherType.String;
118
+ } | {
119
+ path?: string | undefined;
120
+ type: import("../types/rule.js").MatcherType.ObjectKey;
121
+ } | {
122
+ path?: string | undefined;
123
+ type: import("../types/rule.js").MatcherType.ObjectValue;
124
+ })[];
125
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
88
126
  })[] | undefined;
89
127
  name: string;
128
+ path?: string | undefined;
90
129
  } | {
91
130
  kind: import("../types/rule.js").SelectorKind.Tag;
92
131
  match?: ({
@@ -97,6 +136,41 @@ export declare const noDuplicateClasses: {
97
136
  } | {
98
137
  path?: string | undefined;
99
138
  type: import("../types/rule.js").MatcherType.ObjectValue;
139
+ } | {
140
+ match: ({
141
+ type: import("../types/rule.js").MatcherType.String;
142
+ } | {
143
+ path?: string | undefined;
144
+ type: import("../types/rule.js").MatcherType.ObjectKey;
145
+ } | {
146
+ path?: string | undefined;
147
+ type: import("../types/rule.js").MatcherType.ObjectValue;
148
+ })[];
149
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
150
+ })[] | undefined;
151
+ name?: string | undefined;
152
+ path: string;
153
+ } | {
154
+ kind: import("../types/rule.js").SelectorKind.Attribute;
155
+ match?: ({
156
+ type: import("../types/rule.js").MatcherType.String;
157
+ } | {
158
+ path?: string | undefined;
159
+ type: import("../types/rule.js").MatcherType.ObjectKey;
160
+ } | {
161
+ path?: string | undefined;
162
+ type: import("../types/rule.js").MatcherType.ObjectValue;
163
+ } | {
164
+ match: ({
165
+ type: import("../types/rule.js").MatcherType.String;
166
+ } | {
167
+ path?: string | undefined;
168
+ type: import("../types/rule.js").MatcherType.ObjectKey;
169
+ } | {
170
+ path?: string | undefined;
171
+ type: import("../types/rule.js").MatcherType.ObjectValue;
172
+ })[];
173
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
100
174
  })[] | undefined;
101
175
  name: string;
102
176
  } | {
@@ -109,6 +183,17 @@ export declare const noDuplicateClasses: {
109
183
  } | {
110
184
  path?: string | undefined;
111
185
  type: import("../types/rule.js").MatcherType.ObjectValue;
186
+ } | {
187
+ match: ({
188
+ type: import("../types/rule.js").MatcherType.String;
189
+ } | {
190
+ path?: string | undefined;
191
+ type: import("../types/rule.js").MatcherType.ObjectKey;
192
+ } | {
193
+ path?: string | undefined;
194
+ type: import("../types/rule.js").MatcherType.ObjectValue;
195
+ })[];
196
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
112
197
  })[] | undefined;
113
198
  name: string;
114
199
  })[];
@@ -121,6 +206,7 @@ export declare const noDuplicateClasses: {
121
206
  LangOptions: import("eslint").Linter.LanguageOptions;
122
207
  Code: import("eslint").SourceCode;
123
208
  RuleOptions: [Required<{
209
+ cwd?: string | undefined;
124
210
  rootFontSize?: number | undefined;
125
211
  detectComponentClasses: boolean;
126
212
  tsconfig?: string | undefined;
@@ -174,9 +260,22 @@ export declare const noDuplicateClasses: {
174
260
  } | {
175
261
  path?: string | undefined;
176
262
  type: import("../types/rule.js").MatcherType.ObjectValue;
263
+ } | {
264
+ match: ({
265
+ type: import("../types/rule.js").MatcherType.String;
266
+ } | {
267
+ path?: string | undefined;
268
+ type: import("../types/rule.js").MatcherType.ObjectKey;
269
+ } | {
270
+ path?: string | undefined;
271
+ type: import("../types/rule.js").MatcherType.ObjectValue;
272
+ })[];
273
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
177
274
  })[] | undefined;
178
275
  name: string;
179
276
  path?: string | undefined;
277
+ targetArgument?: number | "all" | "first" | "last" | undefined;
278
+ targetCall?: number | "all" | "first" | "last" | undefined;
180
279
  } | {
181
280
  callTarget?: number | "all" | "first" | "last" | undefined;
182
281
  kind: import("../types/rule.js").SelectorKind.Callee;
@@ -188,11 +287,24 @@ export declare const noDuplicateClasses: {
188
287
  } | {
189
288
  path?: string | undefined;
190
289
  type: import("../types/rule.js").MatcherType.ObjectValue;
290
+ } | {
291
+ match: ({
292
+ type: import("../types/rule.js").MatcherType.String;
293
+ } | {
294
+ path?: string | undefined;
295
+ type: import("../types/rule.js").MatcherType.ObjectKey;
296
+ } | {
297
+ path?: string | undefined;
298
+ type: import("../types/rule.js").MatcherType.ObjectValue;
299
+ })[];
300
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
191
301
  })[] | undefined;
192
302
  name?: string | undefined;
193
303
  path: string;
304
+ targetArgument?: number | "all" | "first" | "last" | undefined;
305
+ targetCall?: number | "all" | "first" | "last" | undefined;
194
306
  } | {
195
- kind: import("../types/rule.js").SelectorKind.Attribute;
307
+ kind: import("../types/rule.js").SelectorKind.Tag;
196
308
  match?: ({
197
309
  type: import("../types/rule.js").MatcherType.String;
198
310
  } | {
@@ -201,8 +313,20 @@ export declare const noDuplicateClasses: {
201
313
  } | {
202
314
  path?: string | undefined;
203
315
  type: import("../types/rule.js").MatcherType.ObjectValue;
316
+ } | {
317
+ match: ({
318
+ type: import("../types/rule.js").MatcherType.String;
319
+ } | {
320
+ path?: string | undefined;
321
+ type: import("../types/rule.js").MatcherType.ObjectKey;
322
+ } | {
323
+ path?: string | undefined;
324
+ type: import("../types/rule.js").MatcherType.ObjectValue;
325
+ })[];
326
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
204
327
  })[] | undefined;
205
328
  name: string;
329
+ path?: string | undefined;
206
330
  } | {
207
331
  kind: import("../types/rule.js").SelectorKind.Tag;
208
332
  match?: ({
@@ -213,6 +337,41 @@ export declare const noDuplicateClasses: {
213
337
  } | {
214
338
  path?: string | undefined;
215
339
  type: import("../types/rule.js").MatcherType.ObjectValue;
340
+ } | {
341
+ match: ({
342
+ type: import("../types/rule.js").MatcherType.String;
343
+ } | {
344
+ path?: string | undefined;
345
+ type: import("../types/rule.js").MatcherType.ObjectKey;
346
+ } | {
347
+ path?: string | undefined;
348
+ type: import("../types/rule.js").MatcherType.ObjectValue;
349
+ })[];
350
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
351
+ })[] | undefined;
352
+ name?: string | undefined;
353
+ path: string;
354
+ } | {
355
+ kind: import("../types/rule.js").SelectorKind.Attribute;
356
+ match?: ({
357
+ type: import("../types/rule.js").MatcherType.String;
358
+ } | {
359
+ path?: string | undefined;
360
+ type: import("../types/rule.js").MatcherType.ObjectKey;
361
+ } | {
362
+ path?: string | undefined;
363
+ type: import("../types/rule.js").MatcherType.ObjectValue;
364
+ } | {
365
+ match: ({
366
+ type: import("../types/rule.js").MatcherType.String;
367
+ } | {
368
+ path?: string | undefined;
369
+ type: import("../types/rule.js").MatcherType.ObjectKey;
370
+ } | {
371
+ path?: string | undefined;
372
+ type: import("../types/rule.js").MatcherType.ObjectValue;
373
+ })[];
374
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
216
375
  })[] | undefined;
217
376
  name: string;
218
377
  } | {
@@ -225,6 +384,17 @@ export declare const noDuplicateClasses: {
225
384
  } | {
226
385
  path?: string | undefined;
227
386
  type: import("../types/rule.js").MatcherType.ObjectValue;
387
+ } | {
388
+ match: ({
389
+ type: import("../types/rule.js").MatcherType.String;
390
+ } | {
391
+ path?: string | undefined;
392
+ type: import("../types/rule.js").MatcherType.ObjectKey;
393
+ } | {
394
+ path?: string | undefined;
395
+ type: import("../types/rule.js").MatcherType.ObjectValue;
396
+ })[];
397
+ type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
228
398
  })[] | undefined;
229
399
  name: string;
230
400
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"no-duplicate-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-duplicate-classes.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC"}
1
+ {"version":3,"file":"no-duplicate-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-duplicate-classes.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC"}