@dhzh/eslint-plugin-better-tailwindcss 0.0.0-stage → 4.9.0-patch

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 (423) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +247 -2
  3. package/lib/api/defaults.d.ts +103 -0
  4. package/lib/api/defaults.d.ts.map +1 -0
  5. package/lib/api/defaults.js +34 -0
  6. package/lib/api/defaults.js.map +1 -0
  7. package/lib/api/types.d.ts +9 -0
  8. package/lib/api/types.d.ts.map +1 -0
  9. package/lib/api/types.js +5 -0
  10. package/lib/api/types.js.map +1 -0
  11. package/lib/async-utils/cache.d.ts +30 -0
  12. package/lib/async-utils/cache.d.ts.map +1 -0
  13. package/lib/async-utils/cache.js +116 -0
  14. package/lib/async-utils/cache.js.map +1 -0
  15. package/lib/async-utils/escape.d.ts +2 -0
  16. package/lib/async-utils/escape.d.ts.map +1 -0
  17. package/lib/async-utils/escape.js +5 -0
  18. package/lib/async-utils/escape.js.map +1 -0
  19. package/lib/async-utils/fs.d.ts +3 -0
  20. package/lib/async-utils/fs.d.ts.map +1 -0
  21. package/lib/async-utils/fs.js +28 -0
  22. package/lib/async-utils/fs.js.map +1 -0
  23. package/lib/async-utils/module.d.ts +3 -0
  24. package/lib/async-utils/module.d.ts.map +1 -0
  25. package/lib/async-utils/module.js +7 -0
  26. package/lib/async-utils/module.js.map +1 -0
  27. package/lib/async-utils/operations.d.ts +23 -0
  28. package/lib/async-utils/operations.d.ts.map +1 -0
  29. package/lib/async-utils/operations.js +2 -0
  30. package/lib/async-utils/operations.js.map +1 -0
  31. package/lib/async-utils/order.d.ts +4 -0
  32. package/lib/async-utils/order.d.ts.map +1 -0
  33. package/lib/async-utils/order.js +5 -0
  34. package/lib/async-utils/order.js.map +1 -0
  35. package/lib/async-utils/path.d.ts +2 -0
  36. package/lib/async-utils/path.d.ts.map +1 -0
  37. package/lib/async-utils/path.js +7 -0
  38. package/lib/async-utils/path.js.map +1 -0
  39. package/lib/async-utils/platform.d.ts +2 -0
  40. package/lib/async-utils/platform.d.ts.map +1 -0
  41. package/lib/async-utils/platform.js +4 -0
  42. package/lib/async-utils/platform.js.map +1 -0
  43. package/lib/async-utils/regex.d.ts +3 -0
  44. package/lib/async-utils/regex.d.ts.map +1 -0
  45. package/lib/async-utils/regex.js +32 -0
  46. package/lib/async-utils/regex.js.map +1 -0
  47. package/lib/async-utils/resolvers.d.ts +7 -0
  48. package/lib/async-utils/resolvers.d.ts.map +1 -0
  49. package/lib/async-utils/resolvers.js +64 -0
  50. package/lib/async-utils/resolvers.js.map +1 -0
  51. package/lib/async-utils/segment.d.ts +2 -0
  52. package/lib/async-utils/segment.d.ts.map +1 -0
  53. package/lib/async-utils/segment.js +82 -0
  54. package/lib/async-utils/segment.js.map +1 -0
  55. package/lib/async-utils/worker.d.ts +3 -0
  56. package/lib/async-utils/worker.d.ts.map +1 -0
  57. package/lib/async-utils/worker.js +17 -0
  58. package/lib/async-utils/worker.js.map +1 -0
  59. package/lib/configs/config.d.ts +3521 -0
  60. package/lib/configs/config.d.ts.map +1 -0
  61. package/lib/configs/config.js +98 -0
  62. package/lib/configs/config.js.map +1 -0
  63. package/lib/options/callees/cc.d.ts +30 -0
  64. package/lib/options/callees/cc.d.ts.map +1 -0
  65. package/lib/options/callees/cc.js +25 -0
  66. package/lib/options/callees/cc.js.map +1 -0
  67. package/lib/options/callees/clb.d.ts +35 -0
  68. package/lib/options/callees/clb.d.ts.map +1 -0
  69. package/lib/options/callees/clb.js +39 -0
  70. package/lib/options/callees/clb.js.map +1 -0
  71. package/lib/options/callees/clsx.d.ts +30 -0
  72. package/lib/options/callees/clsx.d.ts.map +1 -0
  73. package/lib/options/callees/clsx.js +25 -0
  74. package/lib/options/callees/clsx.js.map +1 -0
  75. package/lib/options/callees/cn.d.ts +30 -0
  76. package/lib/options/callees/cn.d.ts.map +1 -0
  77. package/lib/options/callees/cn.js +25 -0
  78. package/lib/options/callees/cn.js.map +1 -0
  79. package/lib/options/callees/cnb.d.ts +30 -0
  80. package/lib/options/callees/cnb.d.ts.map +1 -0
  81. package/lib/options/callees/cnb.js +25 -0
  82. package/lib/options/callees/cnb.js.map +1 -0
  83. package/lib/options/callees/ctl.d.ts +17 -0
  84. package/lib/options/callees/ctl.d.ts.map +1 -0
  85. package/lib/options/callees/ctl.js +15 -0
  86. package/lib/options/callees/ctl.js.map +1 -0
  87. package/lib/options/callees/cva.d.ts +40 -0
  88. package/lib/options/callees/cva.d.ts.map +1 -0
  89. package/lib/options/callees/cva.js +37 -0
  90. package/lib/options/callees/cva.js.map +1 -0
  91. package/lib/options/callees/cx.d.ts +30 -0
  92. package/lib/options/callees/cx.d.ts.map +1 -0
  93. package/lib/options/callees/cx.js +25 -0
  94. package/lib/options/callees/cx.js.map +1 -0
  95. package/lib/options/callees/dcnb.d.ts +30 -0
  96. package/lib/options/callees/dcnb.d.ts.map +1 -0
  97. package/lib/options/callees/dcnb.js +25 -0
  98. package/lib/options/callees/dcnb.js.map +1 -0
  99. package/lib/options/callees/objstr.d.ts +24 -0
  100. package/lib/options/callees/objstr.d.ts.map +1 -0
  101. package/lib/options/callees/objstr.js +24 -0
  102. package/lib/options/callees/objstr.js.map +1 -0
  103. package/lib/options/callees/tv.d.ts +64 -0
  104. package/lib/options/callees/tv.d.ts.map +1 -0
  105. package/lib/options/callees/tv.js +70 -0
  106. package/lib/options/callees/tv.js.map +1 -0
  107. package/lib/options/callees/twJoin.d.ts +17 -0
  108. package/lib/options/callees/twJoin.d.ts.map +1 -0
  109. package/lib/options/callees/twJoin.js +15 -0
  110. package/lib/options/callees/twJoin.js.map +1 -0
  111. package/lib/options/callees/twMerge.d.ts +17 -0
  112. package/lib/options/callees/twMerge.d.ts.map +1 -0
  113. package/lib/options/callees/twMerge.js +15 -0
  114. package/lib/options/callees/twMerge.js.map +1 -0
  115. package/lib/options/default-options.d.ts +114 -0
  116. package/lib/options/default-options.d.ts.map +1 -0
  117. package/lib/options/default-options.js +176 -0
  118. package/lib/options/default-options.js.map +1 -0
  119. package/lib/options/descriptions.d.ts +657 -0
  120. package/lib/options/descriptions.d.ts.map +1 -0
  121. package/lib/options/descriptions.js +22 -0
  122. package/lib/options/descriptions.js.map +1 -0
  123. package/lib/options/migrate.d.ts +16 -0
  124. package/lib/options/migrate.d.ts.map +1 -0
  125. package/lib/options/migrate.js +132 -0
  126. package/lib/options/migrate.js.map +1 -0
  127. package/lib/options/schemas/attributes.d.ts +100 -0
  128. package/lib/options/schemas/attributes.d.ts.map +1 -0
  129. package/lib/options/schemas/attributes.js +19 -0
  130. package/lib/options/schemas/attributes.js.map +1 -0
  131. package/lib/options/schemas/callees.d.ts +101 -0
  132. package/lib/options/schemas/callees.d.ts.map +1 -0
  133. package/lib/options/schemas/callees.js +19 -0
  134. package/lib/options/schemas/callees.js.map +1 -0
  135. package/lib/options/schemas/common.d.ts +30 -0
  136. package/lib/options/schemas/common.d.ts.map +1 -0
  137. package/lib/options/schemas/common.js +30 -0
  138. package/lib/options/schemas/common.js.map +1 -0
  139. package/lib/options/schemas/matchers.d.ts +13 -0
  140. package/lib/options/schemas/matchers.d.ts.map +1 -0
  141. package/lib/options/schemas/matchers.js +14 -0
  142. package/lib/options/schemas/matchers.js.map +1 -0
  143. package/lib/options/schemas/selectors.d.ts +1289 -0
  144. package/lib/options/schemas/selectors.d.ts.map +1 -0
  145. package/lib/options/schemas/selectors.js +100 -0
  146. package/lib/options/schemas/selectors.js.map +1 -0
  147. package/lib/options/schemas/tags.d.ts +101 -0
  148. package/lib/options/schemas/tags.d.ts.map +1 -0
  149. package/lib/options/schemas/tags.js +19 -0
  150. package/lib/options/schemas/tags.js.map +1 -0
  151. package/lib/options/schemas/variables.d.ts +100 -0
  152. package/lib/options/schemas/variables.d.ts.map +1 -0
  153. package/lib/options/schemas/variables.js +19 -0
  154. package/lib/options/schemas/variables.js.map +1 -0
  155. package/lib/options/tags/twc.d.ts +36 -0
  156. package/lib/options/tags/twc.d.ts.map +1 -0
  157. package/lib/options/tags/twc.js +26 -0
  158. package/lib/options/tags/twc.js.map +1 -0
  159. package/lib/options/tags/twx.d.ts +36 -0
  160. package/lib/options/tags/twx.d.ts.map +1 -0
  161. package/lib/options/tags/twx.js +26 -0
  162. package/lib/options/tags/twx.js.map +1 -0
  163. package/lib/parsers/angular.d.ts +11 -0
  164. package/lib/parsers/angular.d.ts.map +1 -0
  165. package/lib/parsers/angular.js +736 -0
  166. package/lib/parsers/angular.js.map +1 -0
  167. package/lib/parsers/css.d.ts +5 -0
  168. package/lib/parsers/css.d.ts.map +1 -0
  169. package/lib/parsers/css.js +100 -0
  170. package/lib/parsers/css.js.map +1 -0
  171. package/lib/parsers/es.d.ts +49 -0
  172. package/lib/parsers/es.d.ts.map +1 -0
  173. package/lib/parsers/es.js +924 -0
  174. package/lib/parsers/es.js.map +1 -0
  175. package/lib/parsers/html.d.ts +8 -0
  176. package/lib/parsers/html.d.ts.map +1 -0
  177. package/lib/parsers/html.js +51 -0
  178. package/lib/parsers/html.js.map +1 -0
  179. package/lib/parsers/jsx.d.ts +9 -0
  180. package/lib/parsers/jsx.d.ts.map +1 -0
  181. package/lib/parsers/jsx.js +118 -0
  182. package/lib/parsers/jsx.js.map +1 -0
  183. package/lib/parsers/svelte.d.ts +11 -0
  184. package/lib/parsers/svelte.d.ts.map +1 -0
  185. package/lib/parsers/svelte.js +204 -0
  186. package/lib/parsers/svelte.js.map +1 -0
  187. package/lib/parsers/vue.d.ts +9 -0
  188. package/lib/parsers/vue.d.ts.map +1 -0
  189. package/lib/parsers/vue.js +155 -0
  190. package/lib/parsers/vue.js.map +1 -0
  191. package/lib/rules/enforce-canonical-classes.d.ts +229 -0
  192. package/lib/rules/enforce-canonical-classes.d.ts.map +1 -0
  193. package/lib/rules/enforce-canonical-classes.js +84 -0
  194. package/lib/rules/enforce-canonical-classes.js.map +1 -0
  195. package/lib/rules/enforce-consistent-class-order.d.ts +229 -0
  196. package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -0
  197. package/lib/rules/enforce-consistent-class-order.js +250 -0
  198. package/lib/rules/enforce-consistent-class-order.js.map +1 -0
  199. package/lib/rules/enforce-consistent-important-position.d.ts +225 -0
  200. package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -0
  201. package/lib/rules/enforce-consistent-important-position.js +68 -0
  202. package/lib/rules/enforce-consistent-important-position.js.map +1 -0
  203. package/lib/rules/enforce-consistent-line-wrapping.d.ts +235 -0
  204. package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -0
  205. package/lib/rules/enforce-consistent-line-wrapping.js +537 -0
  206. package/lib/rules/enforce-consistent-line-wrapping.js.map +1 -0
  207. package/lib/rules/enforce-consistent-variable-syntax.d.ts +225 -0
  208. package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -0
  209. package/lib/rules/enforce-consistent-variable-syntax.js +164 -0
  210. package/lib/rules/enforce-consistent-variable-syntax.js.map +1 -0
  211. package/lib/rules/enforce-consistent-variant-order.d.ts +225 -0
  212. package/lib/rules/enforce-consistent-variant-order.d.ts.map +1 -0
  213. package/lib/rules/enforce-consistent-variant-order.js +77 -0
  214. package/lib/rules/enforce-consistent-variant-order.js.map +1 -0
  215. package/lib/rules/enforce-logical-properties.d.ts +227 -0
  216. package/lib/rules/enforce-logical-properties.d.ts.map +1 -0
  217. package/lib/rules/enforce-logical-properties.js +142 -0
  218. package/lib/rules/enforce-logical-properties.js.map +1 -0
  219. package/lib/rules/enforce-shorthand-classes.d.ts +229 -0
  220. package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -0
  221. package/lib/rules/enforce-shorthand-classes.js +217 -0
  222. package/lib/rules/enforce-shorthand-classes.js.map +1 -0
  223. package/lib/rules/no-concatenated-classes.d.ts +225 -0
  224. package/lib/rules/no-concatenated-classes.d.ts.map +1 -0
  225. package/lib/rules/no-concatenated-classes.js +31 -0
  226. package/lib/rules/no-concatenated-classes.js.map +1 -0
  227. package/lib/rules/no-conflicting-classes.d.ts +225 -0
  228. package/lib/rules/no-conflicting-classes.d.ts.map +1 -0
  229. package/lib/rules/no-conflicting-classes.js +60 -0
  230. package/lib/rules/no-conflicting-classes.js.map +1 -0
  231. package/lib/rules/no-deprecated-classes.d.ts +227 -0
  232. package/lib/rules/no-deprecated-classes.d.ts.map +1 -0
  233. package/lib/rules/no-deprecated-classes.js +103 -0
  234. package/lib/rules/no-deprecated-classes.js.map +1 -0
  235. package/lib/rules/no-duplicate-classes.d.ts +225 -0
  236. package/lib/rules/no-duplicate-classes.d.ts.map +1 -0
  237. package/lib/rules/no-duplicate-classes.js +52 -0
  238. package/lib/rules/no-duplicate-classes.js.map +1 -0
  239. package/lib/rules/no-restricted-classes.d.ts +225 -0
  240. package/lib/rules/no-restricted-classes.d.ts.map +1 -0
  241. package/lib/rules/no-restricted-classes.js +57 -0
  242. package/lib/rules/no-restricted-classes.js.map +1 -0
  243. package/lib/rules/no-unknown-classes.d.ts +225 -0
  244. package/lib/rules/no-unknown-classes.d.ts.map +1 -0
  245. package/lib/rules/no-unknown-classes.js +82 -0
  246. package/lib/rules/no-unknown-classes.js.map +1 -0
  247. package/lib/rules/no-unnecessary-whitespace.d.ts +225 -0
  248. package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -0
  249. package/lib/rules/no-unnecessary-whitespace.js +141 -0
  250. package/lib/rules/no-unnecessary-whitespace.js.map +1 -0
  251. package/lib/tailwindcss/canonical-classes.async.v4.d.ts +3 -0
  252. package/lib/tailwindcss/canonical-classes.async.v4.d.ts.map +1 -0
  253. package/lib/tailwindcss/canonical-classes.async.v4.js +54 -0
  254. package/lib/tailwindcss/canonical-classes.async.v4.js.map +1 -0
  255. package/lib/tailwindcss/canonical-classes.d.ts +21 -0
  256. package/lib/tailwindcss/canonical-classes.d.ts.map +1 -0
  257. package/lib/tailwindcss/canonical-classes.js +16 -0
  258. package/lib/tailwindcss/canonical-classes.js.map +1 -0
  259. package/lib/tailwindcss/class-order.async.v3.d.ts +3 -0
  260. package/lib/tailwindcss/class-order.async.v3.d.ts.map +1 -0
  261. package/lib/tailwindcss/class-order.async.v3.js +4 -0
  262. package/lib/tailwindcss/class-order.async.v3.js.map +1 -0
  263. package/lib/tailwindcss/class-order.async.v4.d.ts +3 -0
  264. package/lib/tailwindcss/class-order.async.v4.d.ts.map +1 -0
  265. package/lib/tailwindcss/class-order.async.v4.js +4 -0
  266. package/lib/tailwindcss/class-order.async.v4.js.map +1 -0
  267. package/lib/tailwindcss/class-order.d.ts +11 -0
  268. package/lib/tailwindcss/class-order.d.ts.map +1 -0
  269. package/lib/tailwindcss/class-order.js +16 -0
  270. package/lib/tailwindcss/class-order.js.map +1 -0
  271. package/lib/tailwindcss/conflicting-classes.async.v4.d.ts +35 -0
  272. package/lib/tailwindcss/conflicting-classes.async.v4.d.ts.map +1 -0
  273. package/lib/tailwindcss/conflicting-classes.async.v4.js +82 -0
  274. package/lib/tailwindcss/conflicting-classes.async.v4.js.map +1 -0
  275. package/lib/tailwindcss/conflicting-classes.d.ts +19 -0
  276. package/lib/tailwindcss/conflicting-classes.d.ts.map +1 -0
  277. package/lib/tailwindcss/conflicting-classes.js +17 -0
  278. package/lib/tailwindcss/conflicting-classes.js.map +1 -0
  279. package/lib/tailwindcss/context.async.v3.d.ts +3 -0
  280. package/lib/tailwindcss/context.async.v3.d.ts.map +1 -0
  281. package/lib/tailwindcss/context.async.v3.js +13 -0
  282. package/lib/tailwindcss/context.async.v3.js.map +1 -0
  283. package/lib/tailwindcss/context.async.v4.d.ts +3 -0
  284. package/lib/tailwindcss/context.async.v4.d.ts.map +1 -0
  285. package/lib/tailwindcss/context.async.v4.js +82 -0
  286. package/lib/tailwindcss/context.async.v4.js.map +1 -0
  287. package/lib/tailwindcss/custom-component-classes.async.v3.d.ts +4 -0
  288. package/lib/tailwindcss/custom-component-classes.async.v3.d.ts.map +1 -0
  289. package/lib/tailwindcss/custom-component-classes.async.v3.js +4 -0
  290. package/lib/tailwindcss/custom-component-classes.async.v3.js.map +1 -0
  291. package/lib/tailwindcss/custom-component-classes.async.v4.d.ts +4 -0
  292. package/lib/tailwindcss/custom-component-classes.async.v4.d.ts.map +1 -0
  293. package/lib/tailwindcss/custom-component-classes.async.v4.js +101 -0
  294. package/lib/tailwindcss/custom-component-classes.async.v4.js.map +1 -0
  295. package/lib/tailwindcss/custom-component-classes.d.ts +11 -0
  296. package/lib/tailwindcss/custom-component-classes.d.ts.map +1 -0
  297. package/lib/tailwindcss/custom-component-classes.js +16 -0
  298. package/lib/tailwindcss/custom-component-classes.js.map +1 -0
  299. package/lib/tailwindcss/dissect-classes.async.v3.d.ts +4 -0
  300. package/lib/tailwindcss/dissect-classes.async.v3.d.ts.map +1 -0
  301. package/lib/tailwindcss/dissect-classes.async.v3.js +32 -0
  302. package/lib/tailwindcss/dissect-classes.async.v3.js.map +1 -0
  303. package/lib/tailwindcss/dissect-classes.async.v4.d.ts +3 -0
  304. package/lib/tailwindcss/dissect-classes.async.v4.d.ts.map +1 -0
  305. package/lib/tailwindcss/dissect-classes.async.v4.js +39 -0
  306. package/lib/tailwindcss/dissect-classes.async.v4.js.map +1 -0
  307. package/lib/tailwindcss/dissect-classes.d.ts +23 -0
  308. package/lib/tailwindcss/dissect-classes.d.ts.map +1 -0
  309. package/lib/tailwindcss/dissect-classes.js +16 -0
  310. package/lib/tailwindcss/dissect-classes.js.map +1 -0
  311. package/lib/tailwindcss/prefix.async.v3.d.ts +4 -0
  312. package/lib/tailwindcss/prefix.async.v3.d.ts.map +1 -0
  313. package/lib/tailwindcss/prefix.async.v3.js +7 -0
  314. package/lib/tailwindcss/prefix.async.v3.js.map +1 -0
  315. package/lib/tailwindcss/prefix.async.v4.d.ts +4 -0
  316. package/lib/tailwindcss/prefix.async.v4.d.ts.map +1 -0
  317. package/lib/tailwindcss/prefix.async.v4.js +7 -0
  318. package/lib/tailwindcss/prefix.async.v4.js.map +1 -0
  319. package/lib/tailwindcss/prefix.d.ts +13 -0
  320. package/lib/tailwindcss/prefix.d.ts.map +1 -0
  321. package/lib/tailwindcss/prefix.js +15 -0
  322. package/lib/tailwindcss/prefix.js.map +1 -0
  323. package/lib/tailwindcss/tailwind.async.worker.v3.d.ts +2 -0
  324. package/lib/tailwindcss/tailwind.async.worker.v3.d.ts.map +1 -0
  325. package/lib/tailwindcss/tailwind.async.worker.v3.js +57 -0
  326. package/lib/tailwindcss/tailwind.async.worker.v3.js.map +1 -0
  327. package/lib/tailwindcss/tailwind.async.worker.v4.d.ts +2 -0
  328. package/lib/tailwindcss/tailwind.async.worker.v4.d.ts.map +1 -0
  329. package/lib/tailwindcss/tailwind.async.worker.v4.js +56 -0
  330. package/lib/tailwindcss/tailwind.async.worker.v4.js.map +1 -0
  331. package/lib/tailwindcss/unknown-classes.async.v3.d.ts +4 -0
  332. package/lib/tailwindcss/unknown-classes.async.v3.d.ts.map +1 -0
  333. package/lib/tailwindcss/unknown-classes.async.v3.js +10 -0
  334. package/lib/tailwindcss/unknown-classes.async.v3.js.map +1 -0
  335. package/lib/tailwindcss/unknown-classes.async.v4.d.ts +3 -0
  336. package/lib/tailwindcss/unknown-classes.async.v4.d.ts.map +1 -0
  337. package/lib/tailwindcss/unknown-classes.async.v4.js +5 -0
  338. package/lib/tailwindcss/unknown-classes.async.v4.js.map +1 -0
  339. package/lib/tailwindcss/unknown-classes.d.ts +11 -0
  340. package/lib/tailwindcss/unknown-classes.d.ts.map +1 -0
  341. package/lib/tailwindcss/unknown-classes.js +21 -0
  342. package/lib/tailwindcss/unknown-classes.js.map +1 -0
  343. package/lib/tailwindcss/variant-order.async.v3.d.ts +3 -0
  344. package/lib/tailwindcss/variant-order.async.v3.d.ts.map +1 -0
  345. package/lib/tailwindcss/variant-order.async.v3.js +4 -0
  346. package/lib/tailwindcss/variant-order.async.v3.js.map +1 -0
  347. package/lib/tailwindcss/variant-order.async.v4.d.ts +3 -0
  348. package/lib/tailwindcss/variant-order.async.v4.d.ts.map +1 -0
  349. package/lib/tailwindcss/variant-order.async.v4.js +34 -0
  350. package/lib/tailwindcss/variant-order.async.v4.js.map +1 -0
  351. package/lib/tailwindcss/variant-order.d.ts +11 -0
  352. package/lib/tailwindcss/variant-order.d.ts.map +1 -0
  353. package/lib/tailwindcss/variant-order.js +16 -0
  354. package/lib/tailwindcss/variant-order.js.map +1 -0
  355. package/lib/types/ast.d.ts +79 -0
  356. package/lib/types/ast.d.ts.map +1 -0
  357. package/lib/types/ast.js +2 -0
  358. package/lib/types/ast.js.map +1 -0
  359. package/lib/types/async.d.ts +7 -0
  360. package/lib/types/async.d.ts.map +1 -0
  361. package/lib/types/async.js +2 -0
  362. package/lib/types/async.js.map +1 -0
  363. package/lib/types/estree.d.ts +7 -0
  364. package/lib/types/estree.d.ts.map +1 -0
  365. package/lib/types/estree.js +2 -0
  366. package/lib/types/estree.js.map +1 -0
  367. package/lib/types/rule.d.ts +163 -0
  368. package/lib/types/rule.d.ts.map +1 -0
  369. package/lib/types/rule.js +24 -0
  370. package/lib/types/rule.js.map +1 -0
  371. package/lib/utils/ast.d.ts +4 -0
  372. package/lib/utils/ast.d.ts.map +1 -0
  373. package/lib/utils/ast.js +9 -0
  374. package/lib/utils/ast.js.map +1 -0
  375. package/lib/utils/class.d.ts +12 -0
  376. package/lib/utils/class.d.ts.map +1 -0
  377. package/lib/utils/class.js +19 -0
  378. package/lib/utils/class.js.map +1 -0
  379. package/lib/utils/context.d.ts +20 -0
  380. package/lib/utils/context.d.ts.map +1 -0
  381. package/lib/utils/context.js +91 -0
  382. package/lib/utils/context.js.map +1 -0
  383. package/lib/utils/lint.d.ts +17 -0
  384. package/lib/utils/lint.d.ts.map +1 -0
  385. package/lib/utils/lint.js +40 -0
  386. package/lib/utils/lint.js.map +1 -0
  387. package/lib/utils/matchers.d.ts +24 -0
  388. package/lib/utils/matchers.d.ts.map +1 -0
  389. package/lib/utils/matchers.js +154 -0
  390. package/lib/utils/matchers.js.map +1 -0
  391. package/lib/utils/quotes.d.ts +3 -0
  392. package/lib/utils/quotes.d.ts.map +1 -0
  393. package/lib/utils/quotes.js +9 -0
  394. package/lib/utils/quotes.js.map +1 -0
  395. package/lib/utils/rule.d.ts +31 -0
  396. package/lib/utils/rule.d.ts.map +1 -0
  397. package/lib/utils/rule.js +349 -0
  398. package/lib/utils/rule.js.map +1 -0
  399. package/lib/utils/selectors.d.ts +3 -0
  400. package/lib/utils/selectors.d.ts.map +1 -0
  401. package/lib/utils/selectors.js +4 -0
  402. package/lib/utils/selectors.js.map +1 -0
  403. package/lib/utils/utils.d.ts +49 -0
  404. package/lib/utils/utils.d.ts.map +1 -0
  405. package/lib/utils/utils.js +203 -0
  406. package/lib/utils/utils.js.map +1 -0
  407. package/lib/utils/valibot.d.ts +4 -0
  408. package/lib/utils/valibot.d.ts.map +1 -0
  409. package/lib/utils/valibot.js +12 -0
  410. package/lib/utils/valibot.js.map +1 -0
  411. package/lib/utils/version.d.ts +7 -0
  412. package/lib/utils/version.d.ts.map +1 -0
  413. package/lib/utils/version.js +6 -0
  414. package/lib/utils/version.js.map +1 -0
  415. package/lib/utils/visitedNodes.d.ts +4 -0
  416. package/lib/utils/visitedNodes.d.ts.map +1 -0
  417. package/lib/utils/visitedNodes.js +11 -0
  418. package/lib/utils/visitedNodes.js.map +1 -0
  419. package/lib/utils/warn.d.ts +2 -0
  420. package/lib/utils/warn.d.ts.map +1 -0
  421. package/lib/utils/warn.js +8 -0
  422. package/lib/utils/warn.js.map +1 -0
  423. package/package.json +163 -4
@@ -0,0 +1,225 @@
1
+ export declare const enforceConsistentImportantPosition: {
2
+ category: "stylistic";
3
+ messages: {
4
+ readonly position: "Incorrect important position. '{{ className }}' should be '{{ fix }}'.";
5
+ } | undefined;
6
+ name: "enforce-consistent-important-position";
7
+ readonly options: {
8
+ cwd?: string | undefined;
9
+ rootFontSize?: number | undefined;
10
+ detectComponentClasses: boolean;
11
+ tsconfig?: string | undefined;
12
+ tailwindConfig?: string | undefined;
13
+ messageStyle: "visual" | "compact" | "raw";
14
+ entryPoint?: string | undefined;
15
+ tags?: (string | [string, ({
16
+ match: import("../types/rule.js").MatcherType.String;
17
+ } | {
18
+ match: import("../types/rule.js").MatcherType.ObjectKey;
19
+ pathPattern?: string | undefined;
20
+ } | {
21
+ match: import("../types/rule.js").MatcherType.ObjectValue;
22
+ pathPattern?: string | undefined;
23
+ })[]])[] | undefined;
24
+ variables?: (string | [string, ({
25
+ match: import("../types/rule.js").MatcherType.String;
26
+ } | {
27
+ match: import("../types/rule.js").MatcherType.ObjectKey;
28
+ pathPattern?: string | undefined;
29
+ } | {
30
+ match: import("../types/rule.js").MatcherType.ObjectValue;
31
+ pathPattern?: string | undefined;
32
+ })[]])[] | undefined;
33
+ attributes?: (string | [string, ({
34
+ match: import("../types/rule.js").MatcherType.String;
35
+ } | {
36
+ match: import("../types/rule.js").MatcherType.ObjectKey;
37
+ pathPattern?: string | undefined;
38
+ } | {
39
+ match: import("../types/rule.js").MatcherType.ObjectValue;
40
+ pathPattern?: string | undefined;
41
+ })[]])[] | undefined;
42
+ callees?: (string | [string, ({
43
+ match: import("../types/rule.js").MatcherType.String;
44
+ } | {
45
+ match: import("../types/rule.js").MatcherType.ObjectKey;
46
+ pathPattern?: string | undefined;
47
+ } | {
48
+ match: import("../types/rule.js").MatcherType.ObjectValue;
49
+ pathPattern?: string | undefined;
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
+ } | {
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;
73
+ })[] | undefined;
74
+ name: string;
75
+ path?: string | undefined;
76
+ targetArgument?: number | "all" | "first" | "last" | undefined;
77
+ targetCall?: number | "all" | "first" | "last" | undefined;
78
+ } | {
79
+ callTarget?: number | "all" | "first" | "last" | undefined;
80
+ kind: import("../types/rule.js").SelectorKind.Callee;
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
+ } | {
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;
100
+ })[] | undefined;
101
+ name?: string | undefined;
102
+ path: string;
103
+ targetArgument?: number | "all" | "first" | "last" | undefined;
104
+ targetCall?: number | "all" | "first" | "last" | undefined;
105
+ } | {
106
+ kind: import("../types/rule.js").SelectorKind.Tag;
107
+ match?: ({
108
+ type: import("../types/rule.js").MatcherType.String;
109
+ } | {
110
+ path?: string | undefined;
111
+ type: import("../types/rule.js").MatcherType.ObjectKey;
112
+ } | {
113
+ path?: string | undefined;
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;
126
+ })[] | undefined;
127
+ name: string;
128
+ path?: string | undefined;
129
+ } | {
130
+ kind: import("../types/rule.js").SelectorKind.Tag;
131
+ match?: ({
132
+ type: import("../types/rule.js").MatcherType.String;
133
+ } | {
134
+ path?: string | undefined;
135
+ type: import("../types/rule.js").MatcherType.ObjectKey;
136
+ } | {
137
+ path?: string | undefined;
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;
174
+ })[] | undefined;
175
+ name: string;
176
+ } | {
177
+ kind: import("../types/rule.js").SelectorKind.Variable;
178
+ match?: ({
179
+ type: import("../types/rule.js").MatcherType.String;
180
+ } | {
181
+ path?: string | undefined;
182
+ type: import("../types/rule.js").MatcherType.ObjectKey;
183
+ } | {
184
+ path?: string | undefined;
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;
197
+ })[] | undefined;
198
+ name: string;
199
+ })[];
200
+ } & {
201
+ position?: "recommended" | "legacy" | undefined;
202
+ };
203
+ recommended: false;
204
+ rule: {
205
+ create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
206
+ meta: {
207
+ messages?: {
208
+ readonly position: "Incorrect important position. '{{ className }}' should be '{{ fix }}'.";
209
+ };
210
+ docs: {
211
+ description: string;
212
+ recommended: boolean;
213
+ url: string;
214
+ };
215
+ fixable: "code" | undefined;
216
+ schema: {
217
+ additionalProperties: false;
218
+ properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
219
+ type: "object";
220
+ }[];
221
+ type: "problem" | "layout";
222
+ };
223
+ };
224
+ };
225
+ //# sourceMappingURL=enforce-consistent-important-position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enforce-consistent-important-position.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-important-position.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuF7C,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { description, literal, optional, pipe, strictObject, union } from "valibot";
2
+ import { createGetDissectedClasses, getDissectedClasses } from "../tailwindcss/dissect-classes.js";
3
+ import { buildClass } from "../utils/class.js";
4
+ import { async } from "../utils/context.js";
5
+ import { lintClasses } from "../utils/lint.js";
6
+ import { createRule } from "../utils/rule.js";
7
+ import { splitClasses } from "../utils/utils.js";
8
+ export const enforceConsistentImportantPosition = createRule({
9
+ autofix: true,
10
+ category: "stylistic",
11
+ description: "Enforce consistent important position for classes.",
12
+ docs: "https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-important-position.md",
13
+ name: "enforce-consistent-important-position",
14
+ recommended: false,
15
+ messages: {
16
+ position: "Incorrect important position. '{{ className }}' should be '{{ fix }}'."
17
+ },
18
+ schema: strictObject({
19
+ position: optional(pipe(union([
20
+ literal("legacy"),
21
+ literal("recommended")
22
+ ]), description("Preferred position for important classes. 'legacy' places the important modifier (!) at the start of the class name, 'recommended' places it at the end.")))
23
+ }),
24
+ initialize: ctx => {
25
+ createGetDissectedClasses(ctx);
26
+ },
27
+ lintLiterals(ctx, literals) {
28
+ const { position: configuredPosition } = ctx.options;
29
+ const position = configuredPosition ?? (ctx.version.major >= 4
30
+ ? "recommended"
31
+ : "legacy");
32
+ const asyncCtx = async(ctx);
33
+ for (const literal of literals) {
34
+ const classes = splitClasses(literal.content);
35
+ const { dissectedClasses, warnings: dissectWarnings } = getDissectedClasses(asyncCtx, classes);
36
+ const warnings = [...dissectWarnings];
37
+ lintClasses(ctx, literal, className => {
38
+ const dissectedClass = dissectedClasses[className];
39
+ if (!dissectedClass) {
40
+ return;
41
+ }
42
+ const [importantAtStart, importantAtEnd] = dissectedClass.important;
43
+ if (!importantAtStart && !importantAtEnd ||
44
+ position === "legacy" && importantAtStart ||
45
+ position === "recommended" && importantAtEnd) {
46
+ return;
47
+ }
48
+ if (ctx.version.major <= 3 && position === "recommended") {
49
+ warnings.push({
50
+ option: "position",
51
+ title: `The "${position}" position is not supported in Tailwind CSS v3`,
52
+ url: `${ctx.docs}#position`
53
+ });
54
+ }
55
+ const fix = position === "recommended"
56
+ ? buildClass(ctx, { ...dissectedClass, important: [false, true] })
57
+ : buildClass(ctx, { ...dissectedClass, important: [true, false] });
58
+ return {
59
+ data: { className, fix },
60
+ fix,
61
+ id: "position",
62
+ warnings
63
+ };
64
+ });
65
+ }
66
+ }
67
+ });
68
+ //# sourceMappingURL=enforce-consistent-important-position.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enforce-consistent-important-position.js","sourceRoot":"","sources":["../../src/rules/enforce-consistent-important-position.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,235 @@
1
+ export declare const enforceConsistentLineWrapping: {
2
+ category: "stylistic";
3
+ messages: {
4
+ readonly missing: "Incorrect line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
5
+ readonly unnecessary: "Unnecessary line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
6
+ } | undefined;
7
+ name: "enforce-consistent-line-wrapping";
8
+ readonly options: {
9
+ cwd?: string | undefined;
10
+ rootFontSize?: number | undefined;
11
+ detectComponentClasses: boolean;
12
+ tsconfig?: string | undefined;
13
+ tailwindConfig?: string | undefined;
14
+ messageStyle: "visual" | "compact" | "raw";
15
+ entryPoint?: string | undefined;
16
+ tags?: (string | [string, ({
17
+ match: import("../types/rule.js").MatcherType.String;
18
+ } | {
19
+ match: import("../types/rule.js").MatcherType.ObjectKey;
20
+ pathPattern?: string | undefined;
21
+ } | {
22
+ match: import("../types/rule.js").MatcherType.ObjectValue;
23
+ pathPattern?: string | undefined;
24
+ })[]])[] | undefined;
25
+ variables?: (string | [string, ({
26
+ match: import("../types/rule.js").MatcherType.String;
27
+ } | {
28
+ match: import("../types/rule.js").MatcherType.ObjectKey;
29
+ pathPattern?: string | undefined;
30
+ } | {
31
+ match: import("../types/rule.js").MatcherType.ObjectValue;
32
+ pathPattern?: string | undefined;
33
+ })[]])[] | undefined;
34
+ attributes?: (string | [string, ({
35
+ match: import("../types/rule.js").MatcherType.String;
36
+ } | {
37
+ match: import("../types/rule.js").MatcherType.ObjectKey;
38
+ pathPattern?: string | undefined;
39
+ } | {
40
+ match: import("../types/rule.js").MatcherType.ObjectValue;
41
+ pathPattern?: string | undefined;
42
+ })[]])[] | undefined;
43
+ callees?: (string | [string, ({
44
+ match: import("../types/rule.js").MatcherType.String;
45
+ } | {
46
+ match: import("../types/rule.js").MatcherType.ObjectKey;
47
+ pathPattern?: string | undefined;
48
+ } | {
49
+ match: import("../types/rule.js").MatcherType.ObjectValue;
50
+ pathPattern?: string | undefined;
51
+ })[]])[] | undefined;
52
+ selectors: ({
53
+ callTarget?: number | "all" | "first" | "last" | undefined;
54
+ kind: import("../types/rule.js").SelectorKind.Callee;
55
+ match?: ({
56
+ type: import("../types/rule.js").MatcherType.String;
57
+ } | {
58
+ path?: string | undefined;
59
+ type: import("../types/rule.js").MatcherType.ObjectKey;
60
+ } | {
61
+ path?: string | undefined;
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;
74
+ })[] | undefined;
75
+ name: string;
76
+ path?: string | undefined;
77
+ targetArgument?: number | "all" | "first" | "last" | undefined;
78
+ targetCall?: number | "all" | "first" | "last" | undefined;
79
+ } | {
80
+ callTarget?: number | "all" | "first" | "last" | undefined;
81
+ kind: import("../types/rule.js").SelectorKind.Callee;
82
+ match?: ({
83
+ type: import("../types/rule.js").MatcherType.String;
84
+ } | {
85
+ path?: string | undefined;
86
+ type: import("../types/rule.js").MatcherType.ObjectKey;
87
+ } | {
88
+ path?: string | undefined;
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;
101
+ })[] | undefined;
102
+ name?: string | undefined;
103
+ path: string;
104
+ targetArgument?: number | "all" | "first" | "last" | undefined;
105
+ targetCall?: number | "all" | "first" | "last" | undefined;
106
+ } | {
107
+ kind: import("../types/rule.js").SelectorKind.Tag;
108
+ match?: ({
109
+ type: import("../types/rule.js").MatcherType.String;
110
+ } | {
111
+ path?: string | undefined;
112
+ type: import("../types/rule.js").MatcherType.ObjectKey;
113
+ } | {
114
+ path?: string | undefined;
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;
127
+ })[] | undefined;
128
+ name: string;
129
+ path?: string | undefined;
130
+ } | {
131
+ kind: import("../types/rule.js").SelectorKind.Tag;
132
+ match?: ({
133
+ type: import("../types/rule.js").MatcherType.String;
134
+ } | {
135
+ path?: string | undefined;
136
+ type: import("../types/rule.js").MatcherType.ObjectKey;
137
+ } | {
138
+ path?: string | undefined;
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;
175
+ })[] | undefined;
176
+ name: string;
177
+ } | {
178
+ kind: import("../types/rule.js").SelectorKind.Variable;
179
+ match?: ({
180
+ type: import("../types/rule.js").MatcherType.String;
181
+ } | {
182
+ path?: string | undefined;
183
+ type: import("../types/rule.js").MatcherType.ObjectKey;
184
+ } | {
185
+ path?: string | undefined;
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;
198
+ })[] | undefined;
199
+ name: string;
200
+ })[];
201
+ } & {
202
+ classesPerLine: number;
203
+ group: "never" | "newLine" | "emptyLine";
204
+ indent: number | "tab";
205
+ lineBreakStyle: "unix" | "windows";
206
+ preferSingleLine: boolean;
207
+ printWidth: number;
208
+ strictness: "loose" | "strict";
209
+ tabWidth: number;
210
+ vueConvertToBinding: boolean;
211
+ };
212
+ recommended: true;
213
+ rule: {
214
+ create: (ctx: import("eslint").Rule.RuleContext) => import("eslint").Rule.RuleListener;
215
+ meta: {
216
+ messages?: {
217
+ readonly missing: "Incorrect line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
218
+ readonly unnecessary: "Unnecessary line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
219
+ };
220
+ docs: {
221
+ description: string;
222
+ recommended: boolean;
223
+ url: string;
224
+ };
225
+ fixable: "code" | undefined;
226
+ schema: {
227
+ additionalProperties: false;
228
+ properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
229
+ type: "object";
230
+ }[];
231
+ type: "problem" | "layout";
232
+ };
233
+ };
234
+ };
235
+ //# sourceMappingURL=enforce-consistent-line-wrapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enforce-consistent-line-wrapping.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-line-wrapping.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGxC,CAAC"}