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 enforceConsistentVariableSyntax: {
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 enforceConsistentVariableSyntax: {
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 enforceConsistentVariableSyntax: {
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 enforceConsistentVariableSyntax: {
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,9 +46,74 @@ export declare const enforceConsistentVariableSyntax: {
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
- syntax: "shorthand" | "variable";
116
+ syntax: "variable" | "shorthand";
52
117
  };
53
118
  recommended: false;
54
119
  rule: {
@@ -62,7 +127,7 @@ export declare const enforceConsistentVariableSyntax: {
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 enforceConsistentVariableSyntax: {
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 enforceConsistentVariableSyntax: {
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 enforceConsistentVariableSyntax: {
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,9 +162,74 @@ export declare const enforceConsistentVariableSyntax: {
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
- syntax: "shorthand" | "variable";
232
+ syntax: "variable" | "shorthand";
103
233
  }>];
104
234
  Node: import("eslint").JSSyntaxElement;
105
235
  MessageIds: "incorrect";
@@ -1 +1 @@
1
- {"version":3,"file":"enforce-consistent-variable-syntax.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B1C,CAAC"}
1
+ {"version":3,"file":"enforce-consistent-variable-syntax.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B1C,CAAC"}
@@ -12,7 +12,7 @@ export declare const enforceShorthandClasses: {
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 enforceShorthandClasses: {
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 enforceShorthandClasses: {
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 enforceShorthandClasses: {
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 enforceShorthandClasses: {
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
  [x: string]: unknown;
53
118
  };
@@ -63,7 +128,7 @@ export declare const enforceShorthandClasses: {
63
128
  tailwindConfig?: string | undefined;
64
129
  messageStyle: "visual" | "compact" | "raw";
65
130
  entryPoint?: string | undefined;
66
- tags: (string | [string, ({
131
+ tags?: (string | [string, ({
67
132
  match: import("../types/rule.js").MatcherType.String;
68
133
  } | {
69
134
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -71,8 +136,8 @@ export declare const enforceShorthandClasses: {
71
136
  } | {
72
137
  match: import("../types/rule.js").MatcherType.ObjectValue;
73
138
  pathPattern?: string | undefined;
74
- })[]])[];
75
- variables: (string | [string, ({
139
+ })[]])[] | undefined;
140
+ variables?: (string | [string, ({
76
141
  match: import("../types/rule.js").MatcherType.String;
77
142
  } | {
78
143
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -80,8 +145,8 @@ export declare const enforceShorthandClasses: {
80
145
  } | {
81
146
  match: import("../types/rule.js").MatcherType.ObjectValue;
82
147
  pathPattern?: string | undefined;
83
- })[]])[];
84
- attributes: (string | [string, ({
148
+ })[]])[] | undefined;
149
+ attributes?: (string | [string, ({
85
150
  match: import("../types/rule.js").MatcherType.String;
86
151
  } | {
87
152
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -89,8 +154,8 @@ export declare const enforceShorthandClasses: {
89
154
  } | {
90
155
  match: import("../types/rule.js").MatcherType.ObjectValue;
91
156
  pathPattern?: string | undefined;
92
- })[]])[];
93
- callees: (string | [string, ({
157
+ })[]])[] | undefined;
158
+ callees?: (string | [string, ({
94
159
  match: import("../types/rule.js").MatcherType.String;
95
160
  } | {
96
161
  match: import("../types/rule.js").MatcherType.ObjectKey;
@@ -98,7 +163,72 @@ export declare const enforceShorthandClasses: {
98
163
  } | {
99
164
  match: import("../types/rule.js").MatcherType.ObjectValue;
100
165
  pathPattern?: string | undefined;
101
- })[]])[];
166
+ })[]])[] | undefined;
167
+ selectors: ({
168
+ callTarget?: number | "all" | "first" | "last" | undefined;
169
+ kind: import("../types/rule.js").SelectorKind.Callee;
170
+ match?: ({
171
+ type: import("../types/rule.js").MatcherType.String;
172
+ } | {
173
+ path?: string | undefined;
174
+ type: import("../types/rule.js").MatcherType.ObjectKey;
175
+ } | {
176
+ path?: string | undefined;
177
+ type: import("../types/rule.js").MatcherType.ObjectValue;
178
+ })[] | undefined;
179
+ name: string;
180
+ path?: string | undefined;
181
+ } | {
182
+ callTarget?: number | "all" | "first" | "last" | undefined;
183
+ kind: import("../types/rule.js").SelectorKind.Callee;
184
+ match?: ({
185
+ type: import("../types/rule.js").MatcherType.String;
186
+ } | {
187
+ path?: string | undefined;
188
+ type: import("../types/rule.js").MatcherType.ObjectKey;
189
+ } | {
190
+ path?: string | undefined;
191
+ type: import("../types/rule.js").MatcherType.ObjectValue;
192
+ })[] | undefined;
193
+ name?: string | undefined;
194
+ path: string;
195
+ } | {
196
+ kind: import("../types/rule.js").SelectorKind.Attribute;
197
+ match?: ({
198
+ type: import("../types/rule.js").MatcherType.String;
199
+ } | {
200
+ path?: string | undefined;
201
+ type: import("../types/rule.js").MatcherType.ObjectKey;
202
+ } | {
203
+ path?: string | undefined;
204
+ type: import("../types/rule.js").MatcherType.ObjectValue;
205
+ })[] | undefined;
206
+ name: string;
207
+ } | {
208
+ kind: import("../types/rule.js").SelectorKind.Tag;
209
+ match?: ({
210
+ type: import("../types/rule.js").MatcherType.String;
211
+ } | {
212
+ path?: string | undefined;
213
+ type: import("../types/rule.js").MatcherType.ObjectKey;
214
+ } | {
215
+ path?: string | undefined;
216
+ type: import("../types/rule.js").MatcherType.ObjectValue;
217
+ })[] | undefined;
218
+ name: string;
219
+ } | {
220
+ kind: import("../types/rule.js").SelectorKind.Variable;
221
+ match?: ({
222
+ type: import("../types/rule.js").MatcherType.String;
223
+ } | {
224
+ path?: string | undefined;
225
+ type: import("../types/rule.js").MatcherType.ObjectKey;
226
+ } | {
227
+ path?: string | undefined;
228
+ type: import("../types/rule.js").MatcherType.ObjectValue;
229
+ })[] | undefined;
230
+ name: string;
231
+ })[];
102
232
  } & {
103
233
  [x: string]: unknown;
104
234
  }>];
@@ -1 +1 @@
1
- {"version":3,"file":"enforce-shorthand-classes.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-shorthand-classes.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBlC,CAAC;AAGH,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;AAElD,eAAO,MAAM,UAAU,0BAqFD,CAAC"}
1
+ {"version":3,"file":"enforce-shorthand-classes.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-shorthand-classes.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBlC,CAAC;AAGH,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;AAElD,eAAO,MAAM,UAAU,0BAqFD,CAAC"}