eslint-plugin-better-tailwindcss 4.1.1 → 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 (264) 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/async-utils/operations.d.ts +21 -0
  11. package/lib/async-utils/operations.d.ts.map +1 -0
  12. package/lib/async-utils/operations.js +2 -0
  13. package/lib/async-utils/operations.js.map +1 -0
  14. package/lib/configs/config.d.ts +1754 -194
  15. package/lib/configs/config.d.ts.map +1 -1
  16. package/lib/options/callees/cc.d.ts +28 -12
  17. package/lib/options/callees/cc.d.ts.map +1 -1
  18. package/lib/options/callees/cc.js +15 -13
  19. package/lib/options/callees/cc.js.map +1 -1
  20. package/lib/options/callees/clb.d.ts +33 -17
  21. package/lib/options/callees/clb.d.ts.map +1 -1
  22. package/lib/options/callees/clb.js +25 -22
  23. package/lib/options/callees/clb.js.map +1 -1
  24. package/lib/options/callees/clsx.d.ts +28 -12
  25. package/lib/options/callees/clsx.d.ts.map +1 -1
  26. package/lib/options/callees/clsx.js +15 -13
  27. package/lib/options/callees/clsx.js.map +1 -1
  28. package/lib/options/callees/cn.d.ts +28 -12
  29. package/lib/options/callees/cn.d.ts.map +1 -1
  30. package/lib/options/callees/cn.js +15 -13
  31. package/lib/options/callees/cn.js.map +1 -1
  32. package/lib/options/callees/cnb.d.ts +28 -12
  33. package/lib/options/callees/cnb.d.ts.map +1 -1
  34. package/lib/options/callees/cnb.js +15 -13
  35. package/lib/options/callees/cnb.js.map +1 -1
  36. package/lib/options/callees/ctl.d.ts +15 -7
  37. package/lib/options/callees/ctl.d.ts.map +1 -1
  38. package/lib/options/callees/ctl.js +8 -7
  39. package/lib/options/callees/ctl.js.map +1 -1
  40. package/lib/options/callees/cva.d.ts +38 -18
  41. package/lib/options/callees/cva.d.ts.map +1 -1
  42. package/lib/options/callees/cva.js +24 -21
  43. package/lib/options/callees/cva.js.map +1 -1
  44. package/lib/options/callees/cx.d.ts +28 -12
  45. package/lib/options/callees/cx.d.ts.map +1 -1
  46. package/lib/options/callees/cx.js +15 -13
  47. package/lib/options/callees/cx.js.map +1 -1
  48. package/lib/options/callees/dcnb.d.ts +28 -12
  49. package/lib/options/callees/dcnb.d.ts.map +1 -1
  50. package/lib/options/callees/dcnb.js +15 -13
  51. package/lib/options/callees/dcnb.js.map +1 -1
  52. package/lib/options/callees/objstr.d.ts +22 -10
  53. package/lib/options/callees/objstr.d.ts.map +1 -1
  54. package/lib/options/callees/objstr.js +15 -13
  55. package/lib/options/callees/objstr.js.map +1 -1
  56. package/lib/options/callees/tv.d.ts +62 -30
  57. package/lib/options/callees/tv.d.ts.map +1 -1
  58. package/lib/options/callees/tv.js +48 -42
  59. package/lib/options/callees/tv.js.map +1 -1
  60. package/lib/options/callees/twJoin.d.ts +15 -7
  61. package/lib/options/callees/twJoin.d.ts.map +1 -1
  62. package/lib/options/callees/twJoin.js +8 -7
  63. package/lib/options/callees/twJoin.js.map +1 -1
  64. package/lib/options/callees/twMerge.d.ts +15 -7
  65. package/lib/options/callees/twMerge.d.ts.map +1 -1
  66. package/lib/options/callees/twMerge.js +8 -7
  67. package/lib/options/callees/twMerge.js.map +1 -1
  68. package/lib/options/default-options.d.ts +78 -13
  69. package/lib/options/default-options.d.ts.map +1 -1
  70. package/lib/options/default-options.js +97 -50
  71. package/lib/options/default-options.js.map +1 -1
  72. package/lib/options/descriptions.d.ts +210 -17
  73. package/lib/options/descriptions.d.ts.map +1 -1
  74. package/lib/options/descriptions.js +2 -0
  75. package/lib/options/descriptions.js.map +1 -1
  76. package/lib/options/migrate.d.ts +16 -0
  77. package/lib/options/migrate.d.ts.map +1 -0
  78. package/lib/options/migrate.js +115 -0
  79. package/lib/options/migrate.js.map +1 -0
  80. package/lib/options/schemas/attributes.d.ts +1 -5
  81. package/lib/options/schemas/attributes.d.ts.map +1 -1
  82. package/lib/options/schemas/attributes.js +1 -2
  83. package/lib/options/schemas/attributes.js.map +1 -1
  84. package/lib/options/schemas/callees.d.ts +1 -8
  85. package/lib/options/schemas/callees.d.ts.map +1 -1
  86. package/lib/options/schemas/callees.js +1 -2
  87. package/lib/options/schemas/callees.js.map +1 -1
  88. package/lib/options/schemas/selectors.d.ts +488 -0
  89. package/lib/options/schemas/selectors.d.ts.map +1 -0
  90. package/lib/options/schemas/selectors.js +69 -0
  91. package/lib/options/schemas/selectors.js.map +1 -0
  92. package/lib/options/schemas/tags.d.ts +1 -1
  93. package/lib/options/schemas/tags.d.ts.map +1 -1
  94. package/lib/options/schemas/tags.js +1 -2
  95. package/lib/options/schemas/tags.js.map +1 -1
  96. package/lib/options/schemas/variables.d.ts +1 -3
  97. package/lib/options/schemas/variables.d.ts.map +1 -1
  98. package/lib/options/schemas/variables.js +1 -2
  99. package/lib/options/schemas/variables.js.map +1 -1
  100. package/lib/parsers/angular.d.ts +2 -2
  101. package/lib/parsers/angular.d.ts.map +1 -1
  102. package/lib/parsers/angular.js +21 -25
  103. package/lib/parsers/angular.js.map +1 -1
  104. package/lib/parsers/es.d.ts +5 -8
  105. package/lib/parsers/es.d.ts.map +1 -1
  106. package/lib/parsers/es.js +109 -47
  107. package/lib/parsers/es.js.map +1 -1
  108. package/lib/parsers/html.d.ts +2 -2
  109. package/lib/parsers/html.d.ts.map +1 -1
  110. package/lib/parsers/html.js +7 -10
  111. package/lib/parsers/html.js.map +1 -1
  112. package/lib/parsers/jsx.d.ts +2 -2
  113. package/lib/parsers/jsx.d.ts.map +1 -1
  114. package/lib/parsers/jsx.js +8 -13
  115. package/lib/parsers/jsx.js.map +1 -1
  116. package/lib/parsers/svelte.d.ts +3 -3
  117. package/lib/parsers/svelte.d.ts.map +1 -1
  118. package/lib/parsers/svelte.js +22 -25
  119. package/lib/parsers/svelte.js.map +1 -1
  120. package/lib/parsers/vue.d.ts +2 -2
  121. package/lib/parsers/vue.d.ts.map +1 -1
  122. package/lib/parsers/vue.js +14 -18
  123. package/lib/parsers/vue.js.map +1 -1
  124. package/lib/rules/enforce-canonical-classes.d.ts +146 -16
  125. package/lib/rules/enforce-canonical-classes.d.ts.map +1 -1
  126. package/lib/rules/enforce-consistent-class-order.d.ts +146 -16
  127. package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -1
  128. package/lib/rules/enforce-consistent-important-position.d.ts +146 -16
  129. package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -1
  130. package/lib/rules/enforce-consistent-line-wrapping.d.ts +146 -16
  131. package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
  132. package/lib/rules/enforce-consistent-variable-syntax.d.ts +148 -18
  133. package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
  134. package/lib/rules/enforce-shorthand-classes.d.ts +146 -16
  135. package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -1
  136. package/lib/rules/no-conflicting-classes.d.ts +146 -16
  137. package/lib/rules/no-conflicting-classes.d.ts.map +1 -1
  138. package/lib/rules/no-deprecated-classes.d.ts +146 -16
  139. package/lib/rules/no-deprecated-classes.d.ts.map +1 -1
  140. package/lib/rules/no-duplicate-classes.d.ts +146 -16
  141. package/lib/rules/no-duplicate-classes.d.ts.map +1 -1
  142. package/lib/rules/no-restricted-classes.d.ts +146 -16
  143. package/lib/rules/no-restricted-classes.d.ts.map +1 -1
  144. package/lib/rules/no-unknown-classes.d.ts +146 -16
  145. package/lib/rules/no-unknown-classes.d.ts.map +1 -1
  146. package/lib/rules/no-unnecessary-whitespace.d.ts +146 -16
  147. package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -1
  148. package/lib/tailwindcss/canonical-classes.d.ts.map +1 -1
  149. package/lib/tailwindcss/canonical-classes.js +3 -7
  150. package/lib/tailwindcss/canonical-classes.js.map +1 -1
  151. package/lib/tailwindcss/class-order.async.v3.d.ts +1 -1
  152. package/lib/tailwindcss/class-order.async.v3.d.ts.map +1 -1
  153. package/lib/tailwindcss/class-order.async.v3.js +2 -2
  154. package/lib/tailwindcss/class-order.async.v3.js.map +1 -1
  155. package/lib/tailwindcss/class-order.async.v4.d.ts +1 -1
  156. package/lib/tailwindcss/class-order.async.v4.d.ts.map +1 -1
  157. package/lib/tailwindcss/class-order.async.v4.js +2 -2
  158. package/lib/tailwindcss/class-order.async.v4.js.map +1 -1
  159. package/lib/tailwindcss/class-order.d.ts.map +1 -1
  160. package/lib/tailwindcss/class-order.js +3 -7
  161. package/lib/tailwindcss/class-order.js.map +1 -1
  162. package/lib/tailwindcss/conflicting-classes.async.v4.d.ts +1 -1
  163. package/lib/tailwindcss/conflicting-classes.async.v4.d.ts.map +1 -1
  164. package/lib/tailwindcss/conflicting-classes.async.v4.js +3 -3
  165. package/lib/tailwindcss/conflicting-classes.async.v4.js.map +1 -1
  166. package/lib/tailwindcss/conflicting-classes.d.ts.map +1 -1
  167. package/lib/tailwindcss/conflicting-classes.js +3 -7
  168. package/lib/tailwindcss/conflicting-classes.js.map +1 -1
  169. package/lib/tailwindcss/custom-component-classes.async.v3.d.ts +3 -1
  170. package/lib/tailwindcss/custom-component-classes.async.v3.d.ts.map +1 -1
  171. package/lib/tailwindcss/custom-component-classes.async.v3.js +3 -4
  172. package/lib/tailwindcss/custom-component-classes.async.v3.js.map +1 -1
  173. package/lib/tailwindcss/custom-component-classes.async.v4.d.ts +3 -1
  174. package/lib/tailwindcss/custom-component-classes.async.v4.d.ts.map +1 -1
  175. package/lib/tailwindcss/custom-component-classes.async.v4.js +3 -5
  176. package/lib/tailwindcss/custom-component-classes.async.v4.js.map +1 -1
  177. package/lib/tailwindcss/custom-component-classes.d.ts.map +1 -1
  178. package/lib/tailwindcss/custom-component-classes.js +3 -7
  179. package/lib/tailwindcss/custom-component-classes.js.map +1 -1
  180. package/lib/tailwindcss/dissect-classes.d.ts.map +1 -1
  181. package/lib/tailwindcss/dissect-classes.js +3 -7
  182. package/lib/tailwindcss/dissect-classes.js.map +1 -1
  183. package/lib/tailwindcss/prefix.async.v3.d.ts +2 -2
  184. package/lib/tailwindcss/prefix.async.v3.d.ts.map +1 -1
  185. package/lib/tailwindcss/prefix.async.v3.js +3 -3
  186. package/lib/tailwindcss/prefix.async.v3.js.map +1 -1
  187. package/lib/tailwindcss/prefix.async.v4.d.ts +2 -2
  188. package/lib/tailwindcss/prefix.async.v4.d.ts.map +1 -1
  189. package/lib/tailwindcss/prefix.async.v4.js +4 -4
  190. package/lib/tailwindcss/prefix.async.v4.js.map +1 -1
  191. package/lib/tailwindcss/prefix.d.ts.map +1 -1
  192. package/lib/tailwindcss/prefix.js +3 -7
  193. package/lib/tailwindcss/prefix.js.map +1 -1
  194. package/lib/tailwindcss/tailwind.async.worker.v3.d.ts +2 -0
  195. package/lib/tailwindcss/tailwind.async.worker.v3.d.ts.map +1 -0
  196. package/lib/tailwindcss/tailwind.async.worker.v3.js +52 -0
  197. package/lib/tailwindcss/tailwind.async.worker.v3.js.map +1 -0
  198. package/lib/tailwindcss/tailwind.async.worker.v4.d.ts +2 -0
  199. package/lib/tailwindcss/tailwind.async.worker.v4.d.ts.map +1 -0
  200. package/lib/tailwindcss/tailwind.async.worker.v4.js +50 -0
  201. package/lib/tailwindcss/tailwind.async.worker.v4.js.map +1 -0
  202. package/lib/tailwindcss/unknown-classes.d.ts.map +1 -1
  203. package/lib/tailwindcss/unknown-classes.js +3 -7
  204. package/lib/tailwindcss/unknown-classes.js.map +1 -1
  205. package/lib/types/rule.d.ts +39 -0
  206. package/lib/types/rule.d.ts.map +1 -1
  207. package/lib/types/rule.js +7 -0
  208. package/lib/types/rule.js.map +1 -1
  209. package/lib/utils/rule.d.ts.map +1 -1
  210. package/lib/utils/rule.js +42 -2
  211. package/lib/utils/rule.js.map +1 -1
  212. package/lib/utils/selectors.d.ts +3 -0
  213. package/lib/utils/selectors.d.ts.map +1 -0
  214. package/lib/utils/selectors.js +4 -0
  215. package/lib/utils/selectors.js.map +1 -0
  216. package/package.json +10 -11
  217. package/lib/tailwindcss/canonical-classes.async.worker.v3.d.ts +0 -2
  218. package/lib/tailwindcss/canonical-classes.async.worker.v3.d.ts.map +0 -1
  219. package/lib/tailwindcss/canonical-classes.async.worker.v3.js +0 -15
  220. package/lib/tailwindcss/canonical-classes.async.worker.v3.js.map +0 -1
  221. package/lib/tailwindcss/canonical-classes.async.worker.v4.d.ts +0 -2
  222. package/lib/tailwindcss/canonical-classes.async.worker.v4.d.ts.map +0 -1
  223. package/lib/tailwindcss/canonical-classes.async.worker.v4.js +0 -9
  224. package/lib/tailwindcss/canonical-classes.async.worker.v4.js.map +0 -1
  225. package/lib/tailwindcss/class-order.async.worker.v3.d.ts +0 -2
  226. package/lib/tailwindcss/class-order.async.worker.v3.d.ts.map +0 -1
  227. package/lib/tailwindcss/class-order.async.worker.v3.js +0 -9
  228. package/lib/tailwindcss/class-order.async.worker.v3.js.map +0 -1
  229. package/lib/tailwindcss/class-order.async.worker.v4.d.ts +0 -2
  230. package/lib/tailwindcss/class-order.async.worker.v4.d.ts.map +0 -1
  231. package/lib/tailwindcss/class-order.async.worker.v4.js +0 -9
  232. package/lib/tailwindcss/class-order.async.worker.v4.js.map +0 -1
  233. package/lib/tailwindcss/conflicting-classes.async.worker.v3.d.ts +0 -2
  234. package/lib/tailwindcss/conflicting-classes.async.worker.v3.d.ts.map +0 -1
  235. package/lib/tailwindcss/conflicting-classes.async.worker.v3.js +0 -5
  236. package/lib/tailwindcss/conflicting-classes.async.worker.v3.js.map +0 -1
  237. package/lib/tailwindcss/conflicting-classes.async.worker.v4.d.ts +0 -2
  238. package/lib/tailwindcss/conflicting-classes.async.worker.v4.d.ts.map +0 -1
  239. package/lib/tailwindcss/conflicting-classes.async.worker.v4.js +0 -9
  240. package/lib/tailwindcss/conflicting-classes.async.worker.v4.js.map +0 -1
  241. package/lib/tailwindcss/dissect-classes.async.worker.v3.d.ts +0 -2
  242. package/lib/tailwindcss/dissect-classes.async.worker.v3.d.ts.map +0 -1
  243. package/lib/tailwindcss/dissect-classes.async.worker.v3.js +0 -9
  244. package/lib/tailwindcss/dissect-classes.async.worker.v3.js.map +0 -1
  245. package/lib/tailwindcss/dissect-classes.async.worker.v4.d.ts +0 -2
  246. package/lib/tailwindcss/dissect-classes.async.worker.v4.d.ts.map +0 -1
  247. package/lib/tailwindcss/dissect-classes.async.worker.v4.js +0 -9
  248. package/lib/tailwindcss/dissect-classes.async.worker.v4.js.map +0 -1
  249. package/lib/tailwindcss/prefix.async.worker.v3.d.ts +0 -2
  250. package/lib/tailwindcss/prefix.async.worker.v3.d.ts.map +0 -1
  251. package/lib/tailwindcss/prefix.async.worker.v3.js +0 -10
  252. package/lib/tailwindcss/prefix.async.worker.v3.js.map +0 -1
  253. package/lib/tailwindcss/prefix.async.worker.v4.d.ts +0 -2
  254. package/lib/tailwindcss/prefix.async.worker.v4.d.ts.map +0 -1
  255. package/lib/tailwindcss/prefix.async.worker.v4.js +0 -10
  256. package/lib/tailwindcss/prefix.async.worker.v4.js.map +0 -1
  257. package/lib/tailwindcss/unknown-classes.async.worker.v3.d.ts +0 -2
  258. package/lib/tailwindcss/unknown-classes.async.worker.v3.d.ts.map +0 -1
  259. package/lib/tailwindcss/unknown-classes.async.worker.v3.js +0 -9
  260. package/lib/tailwindcss/unknown-classes.async.worker.v3.js.map +0 -1
  261. package/lib/tailwindcss/unknown-classes.async.worker.v4.d.ts +0 -2
  262. package/lib/tailwindcss/unknown-classes.async.worker.v4.d.ts.map +0 -1
  263. package/lib/tailwindcss/unknown-classes.async.worker.v4.js +0 -9
  264. package/lib/tailwindcss/unknown-classes.async.worker.v4.js.map +0 -1
@@ -11,7 +11,7 @@ export declare const noDuplicateClasses: {
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 noDuplicateClasses: {
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 noDuplicateClasses: {
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 noDuplicateClasses: {
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 noDuplicateClasses: {
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
  [x: string]: unknown;
52
117
  };
@@ -62,7 +127,7 @@ export declare const noDuplicateClasses: {
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 noDuplicateClasses: {
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 noDuplicateClasses: {
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 noDuplicateClasses: {
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 noDuplicateClasses: {
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
  [x: string]: unknown;
103
233
  }>];
@@ -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"}
@@ -9,7 +9,7 @@ export declare const noRestrictedClasses: {
9
9
  tailwindConfig?: string | undefined;
10
10
  messageStyle: "visual" | "compact" | "raw";
11
11
  entryPoint?: string | undefined;
12
- tags: (string | [string, ({
12
+ tags?: (string | [string, ({
13
13
  match: import("../types/rule.js").MatcherType.String;
14
14
  } | {
15
15
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -17,8 +17,8 @@ export declare const noRestrictedClasses: {
17
17
  } | {
18
18
  match: import("../types/rule.js").MatcherType.ObjectValue;
19
19
  pathPattern?: string | undefined;
20
- })[]])[];
21
- variables: (string | [string, ({
20
+ })[]])[] | undefined;
21
+ variables?: (string | [string, ({
22
22
  match: import("../types/rule.js").MatcherType.String;
23
23
  } | {
24
24
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -26,8 +26,8 @@ export declare const noRestrictedClasses: {
26
26
  } | {
27
27
  match: import("../types/rule.js").MatcherType.ObjectValue;
28
28
  pathPattern?: string | undefined;
29
- })[]])[];
30
- attributes: (string | [string, ({
29
+ })[]])[] | undefined;
30
+ attributes?: (string | [string, ({
31
31
  match: import("../types/rule.js").MatcherType.String;
32
32
  } | {
33
33
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -35,8 +35,8 @@ export declare const noRestrictedClasses: {
35
35
  } | {
36
36
  match: import("../types/rule.js").MatcherType.ObjectValue;
37
37
  pathPattern?: string | undefined;
38
- })[]])[];
39
- callees: (string | [string, ({
38
+ })[]])[] | undefined;
39
+ callees?: (string | [string, ({
40
40
  match: import("../types/rule.js").MatcherType.String;
41
41
  } | {
42
42
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -44,7 +44,72 @@ export declare const noRestrictedClasses: {
44
44
  } | {
45
45
  match: import("../types/rule.js").MatcherType.ObjectValue;
46
46
  pathPattern?: string | undefined;
47
- })[]])[];
47
+ })[]])[] | undefined;
48
+ selectors: ({
49
+ callTarget?: number | "all" | "first" | "last" | undefined;
50
+ kind: import("../types/rule.js").SelectorKind.Callee;
51
+ match?: ({
52
+ type: import("../types/rule.js").MatcherType.String;
53
+ } | {
54
+ path?: string | undefined;
55
+ type: import("../types/rule.js").MatcherType.ObjectKey;
56
+ } | {
57
+ path?: string | undefined;
58
+ type: import("../types/rule.js").MatcherType.ObjectValue;
59
+ })[] | undefined;
60
+ name: string;
61
+ path?: string | undefined;
62
+ } | {
63
+ callTarget?: number | "all" | "first" | "last" | undefined;
64
+ kind: import("../types/rule.js").SelectorKind.Callee;
65
+ match?: ({
66
+ type: import("../types/rule.js").MatcherType.String;
67
+ } | {
68
+ path?: string | undefined;
69
+ type: import("../types/rule.js").MatcherType.ObjectKey;
70
+ } | {
71
+ path?: string | undefined;
72
+ type: import("../types/rule.js").MatcherType.ObjectValue;
73
+ })[] | undefined;
74
+ name?: string | undefined;
75
+ path: string;
76
+ } | {
77
+ kind: import("../types/rule.js").SelectorKind.Attribute;
78
+ match?: ({
79
+ type: import("../types/rule.js").MatcherType.String;
80
+ } | {
81
+ path?: string | undefined;
82
+ type: import("../types/rule.js").MatcherType.ObjectKey;
83
+ } | {
84
+ path?: string | undefined;
85
+ type: import("../types/rule.js").MatcherType.ObjectValue;
86
+ })[] | undefined;
87
+ name: string;
88
+ } | {
89
+ kind: import("../types/rule.js").SelectorKind.Tag;
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
+ })[] | undefined;
99
+ name: string;
100
+ } | {
101
+ kind: import("../types/rule.js").SelectorKind.Variable;
102
+ match?: ({
103
+ type: import("../types/rule.js").MatcherType.String;
104
+ } | {
105
+ path?: string | undefined;
106
+ type: import("../types/rule.js").MatcherType.ObjectKey;
107
+ } | {
108
+ path?: string | undefined;
109
+ type: import("../types/rule.js").MatcherType.ObjectValue;
110
+ })[] | undefined;
111
+ name: string;
112
+ })[];
48
113
  } & {
49
114
  restrict: (string | {
50
115
  fix?: string | undefined;
@@ -64,7 +129,7 @@ export declare const noRestrictedClasses: {
64
129
  tailwindConfig?: string | undefined;
65
130
  messageStyle: "visual" | "compact" | "raw";
66
131
  entryPoint?: string | undefined;
67
- tags: (string | [string, ({
132
+ tags?: (string | [string, ({
68
133
  match: import("../types/rule.js").MatcherType.String;
69
134
  } | {
70
135
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -72,8 +137,8 @@ export declare const noRestrictedClasses: {
72
137
  } | {
73
138
  match: import("../types/rule.js").MatcherType.ObjectValue;
74
139
  pathPattern?: string | undefined;
75
- })[]])[];
76
- variables: (string | [string, ({
140
+ })[]])[] | undefined;
141
+ variables?: (string | [string, ({
77
142
  match: import("../types/rule.js").MatcherType.String;
78
143
  } | {
79
144
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -81,8 +146,8 @@ export declare const noRestrictedClasses: {
81
146
  } | {
82
147
  match: import("../types/rule.js").MatcherType.ObjectValue;
83
148
  pathPattern?: string | undefined;
84
- })[]])[];
85
- attributes: (string | [string, ({
149
+ })[]])[] | undefined;
150
+ attributes?: (string | [string, ({
86
151
  match: import("../types/rule.js").MatcherType.String;
87
152
  } | {
88
153
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -90,8 +155,8 @@ export declare const noRestrictedClasses: {
90
155
  } | {
91
156
  match: import("../types/rule.js").MatcherType.ObjectValue;
92
157
  pathPattern?: string | undefined;
93
- })[]])[];
94
- callees: (string | [string, ({
158
+ })[]])[] | undefined;
159
+ callees?: (string | [string, ({
95
160
  match: import("../types/rule.js").MatcherType.String;
96
161
  } | {
97
162
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -99,7 +164,72 @@ export declare const noRestrictedClasses: {
99
164
  } | {
100
165
  match: import("../types/rule.js").MatcherType.ObjectValue;
101
166
  pathPattern?: string | undefined;
102
- })[]])[];
167
+ })[]])[] | undefined;
168
+ selectors: ({
169
+ callTarget?: number | "all" | "first" | "last" | undefined;
170
+ kind: import("../types/rule.js").SelectorKind.Callee;
171
+ match?: ({
172
+ type: import("../types/rule.js").MatcherType.String;
173
+ } | {
174
+ path?: string | undefined;
175
+ type: import("../types/rule.js").MatcherType.ObjectKey;
176
+ } | {
177
+ path?: string | undefined;
178
+ type: import("../types/rule.js").MatcherType.ObjectValue;
179
+ })[] | undefined;
180
+ name: string;
181
+ path?: string | undefined;
182
+ } | {
183
+ callTarget?: number | "all" | "first" | "last" | undefined;
184
+ kind: import("../types/rule.js").SelectorKind.Callee;
185
+ match?: ({
186
+ type: import("../types/rule.js").MatcherType.String;
187
+ } | {
188
+ path?: string | undefined;
189
+ type: import("../types/rule.js").MatcherType.ObjectKey;
190
+ } | {
191
+ path?: string | undefined;
192
+ type: import("../types/rule.js").MatcherType.ObjectValue;
193
+ })[] | undefined;
194
+ name?: string | undefined;
195
+ path: string;
196
+ } | {
197
+ kind: import("../types/rule.js").SelectorKind.Attribute;
198
+ match?: ({
199
+ type: import("../types/rule.js").MatcherType.String;
200
+ } | {
201
+ path?: string | undefined;
202
+ type: import("../types/rule.js").MatcherType.ObjectKey;
203
+ } | {
204
+ path?: string | undefined;
205
+ type: import("../types/rule.js").MatcherType.ObjectValue;
206
+ })[] | undefined;
207
+ name: string;
208
+ } | {
209
+ kind: import("../types/rule.js").SelectorKind.Tag;
210
+ match?: ({
211
+ type: import("../types/rule.js").MatcherType.String;
212
+ } | {
213
+ path?: string | undefined;
214
+ type: import("../types/rule.js").MatcherType.ObjectKey;
215
+ } | {
216
+ path?: string | undefined;
217
+ type: import("../types/rule.js").MatcherType.ObjectValue;
218
+ })[] | undefined;
219
+ name: string;
220
+ } | {
221
+ kind: import("../types/rule.js").SelectorKind.Variable;
222
+ match?: ({
223
+ type: import("../types/rule.js").MatcherType.String;
224
+ } | {
225
+ path?: string | undefined;
226
+ type: import("../types/rule.js").MatcherType.ObjectKey;
227
+ } | {
228
+ path?: string | undefined;
229
+ type: import("../types/rule.js").MatcherType.ObjectValue;
230
+ })[] | undefined;
231
+ name: string;
232
+ })[];
103
233
  } & {
104
234
  restrict: (string | {
105
235
  fix?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"no-restricted-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-restricted-classes.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9B,CAAC"}
1
+ {"version":3,"file":"no-restricted-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-restricted-classes.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9B,CAAC"}