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
@@ -0,0 +1,488 @@
1
+ import { MatcherType, SelectorKind } from "../../types/rule.js";
2
+ import type { InferOutput } from "valibot";
3
+ export declare const SELECTOR_SCHEMA: import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
4
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Attribute, undefined>, import("valibot").DescriptionAction<SelectorKind.Attribute, "Selector kind that determines where matching is applied.">]>;
5
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
6
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
7
+ }, undefined>, import("valibot").StrictObjectSchema<{
8
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
9
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
10
+ }, undefined>, import("valibot").StrictObjectSchema<{
11
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
12
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
13
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
14
+ type: MatcherType.String;
15
+ } | {
16
+ path?: string | undefined;
17
+ type: MatcherType.ObjectKey;
18
+ } | {
19
+ path?: string | undefined;
20
+ type: MatcherType.ObjectValue;
21
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
22
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
23
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
24
+ readonly callTarget: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"all", undefined>, import("valibot").LiteralSchema<"first", undefined>, import("valibot").LiteralSchema<"last", undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, import("valibot").DescriptionAction<number | "all" | "first" | "last" | undefined, "Optional call target for curried callees: index, first, last, or all.">]>;
25
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Callee, undefined>, import("valibot").DescriptionAction<SelectorKind.Callee, "Selector kind that determines where matching is applied.">]>;
26
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
27
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
28
+ }, undefined>, import("valibot").StrictObjectSchema<{
29
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
30
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
31
+ }, undefined>, import("valibot").StrictObjectSchema<{
32
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
33
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
34
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
35
+ type: MatcherType.String;
36
+ } | {
37
+ path?: string | undefined;
38
+ type: MatcherType.ObjectKey;
39
+ } | {
40
+ path?: string | undefined;
41
+ type: MatcherType.ObjectValue;
42
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
43
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
44
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for callee paths that should be linted.">]>, undefined>;
45
+ }, undefined>, import("valibot").StrictObjectSchema<{
46
+ readonly callTarget: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"all", undefined>, import("valibot").LiteralSchema<"first", undefined>, import("valibot").LiteralSchema<"last", undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, import("valibot").DescriptionAction<number | "all" | "first" | "last" | undefined, "Optional call target for curried callees: index, first, last, or all.">]>;
47
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Callee, undefined>, import("valibot").DescriptionAction<SelectorKind.Callee, "Selector kind that determines where matching is applied.">]>;
48
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
49
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
50
+ }, undefined>, import("valibot").StrictObjectSchema<{
51
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
52
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
53
+ }, undefined>, import("valibot").StrictObjectSchema<{
54
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
55
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
56
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
57
+ type: MatcherType.String;
58
+ } | {
59
+ path?: string | undefined;
60
+ type: MatcherType.ObjectKey;
61
+ } | {
62
+ path?: string | undefined;
63
+ type: MatcherType.ObjectValue;
64
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
65
+ readonly name: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>, undefined>;
66
+ readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for callee paths that should be linted.">]>;
67
+ }, undefined>], undefined>, import("valibot").StrictObjectSchema<{
68
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Tag, undefined>, import("valibot").DescriptionAction<SelectorKind.Tag, "Selector kind that determines where matching is applied.">]>;
69
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
70
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
71
+ }, undefined>, import("valibot").StrictObjectSchema<{
72
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
73
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
74
+ }, undefined>, import("valibot").StrictObjectSchema<{
75
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
76
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
77
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
78
+ type: MatcherType.String;
79
+ } | {
80
+ path?: string | undefined;
81
+ type: MatcherType.ObjectKey;
82
+ } | {
83
+ path?: string | undefined;
84
+ type: MatcherType.ObjectValue;
85
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
86
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
87
+ }, undefined>, import("valibot").StrictObjectSchema<{
88
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Variable, undefined>, import("valibot").DescriptionAction<SelectorKind.Variable, "Selector kind that determines where matching is applied.">]>;
89
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
90
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
91
+ }, undefined>, import("valibot").StrictObjectSchema<{
92
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
93
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
94
+ }, undefined>, import("valibot").StrictObjectSchema<{
95
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
96
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
97
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
98
+ type: MatcherType.String;
99
+ } | {
100
+ path?: string | undefined;
101
+ type: MatcherType.ObjectKey;
102
+ } | {
103
+ path?: string | undefined;
104
+ type: MatcherType.ObjectValue;
105
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
106
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
107
+ }, undefined>], undefined>;
108
+ export type Selector = InferOutput<typeof SELECTOR_SCHEMA>;
109
+ export declare const SELECTORS_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
110
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Attribute, undefined>, import("valibot").DescriptionAction<SelectorKind.Attribute, "Selector kind that determines where matching is applied.">]>;
111
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
112
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
113
+ }, undefined>, import("valibot").StrictObjectSchema<{
114
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
115
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
116
+ }, undefined>, import("valibot").StrictObjectSchema<{
117
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
118
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
119
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
120
+ type: MatcherType.String;
121
+ } | {
122
+ path?: string | undefined;
123
+ type: MatcherType.ObjectKey;
124
+ } | {
125
+ path?: string | undefined;
126
+ type: MatcherType.ObjectValue;
127
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
128
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
129
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
130
+ readonly callTarget: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"all", undefined>, import("valibot").LiteralSchema<"first", undefined>, import("valibot").LiteralSchema<"last", undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, import("valibot").DescriptionAction<number | "all" | "first" | "last" | undefined, "Optional call target for curried callees: index, first, last, or all.">]>;
131
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Callee, undefined>, import("valibot").DescriptionAction<SelectorKind.Callee, "Selector kind that determines where matching is applied.">]>;
132
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
133
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
134
+ }, undefined>, import("valibot").StrictObjectSchema<{
135
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
136
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
137
+ }, undefined>, import("valibot").StrictObjectSchema<{
138
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
139
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
140
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
141
+ type: MatcherType.String;
142
+ } | {
143
+ path?: string | undefined;
144
+ type: MatcherType.ObjectKey;
145
+ } | {
146
+ path?: string | undefined;
147
+ type: MatcherType.ObjectValue;
148
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
149
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
150
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for callee paths that should be linted.">]>, undefined>;
151
+ }, undefined>, import("valibot").StrictObjectSchema<{
152
+ readonly callTarget: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"all", undefined>, import("valibot").LiteralSchema<"first", undefined>, import("valibot").LiteralSchema<"last", undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, import("valibot").DescriptionAction<number | "all" | "first" | "last" | undefined, "Optional call target for curried callees: index, first, last, or all.">]>;
153
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Callee, undefined>, import("valibot").DescriptionAction<SelectorKind.Callee, "Selector kind that determines where matching is applied.">]>;
154
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
155
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
156
+ }, undefined>, import("valibot").StrictObjectSchema<{
157
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
158
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
159
+ }, undefined>, import("valibot").StrictObjectSchema<{
160
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
161
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
162
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
163
+ type: MatcherType.String;
164
+ } | {
165
+ path?: string | undefined;
166
+ type: MatcherType.ObjectKey;
167
+ } | {
168
+ path?: string | undefined;
169
+ type: MatcherType.ObjectValue;
170
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
171
+ readonly name: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>, undefined>;
172
+ readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for callee paths that should be linted.">]>;
173
+ }, undefined>], undefined>, import("valibot").StrictObjectSchema<{
174
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Tag, undefined>, import("valibot").DescriptionAction<SelectorKind.Tag, "Selector kind that determines where matching is applied.">]>;
175
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
176
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
177
+ }, undefined>, import("valibot").StrictObjectSchema<{
178
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
179
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
180
+ }, undefined>, import("valibot").StrictObjectSchema<{
181
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
182
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
183
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
184
+ type: MatcherType.String;
185
+ } | {
186
+ path?: string | undefined;
187
+ type: MatcherType.ObjectKey;
188
+ } | {
189
+ path?: string | undefined;
190
+ type: MatcherType.ObjectValue;
191
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
192
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
193
+ }, undefined>, import("valibot").StrictObjectSchema<{
194
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Variable, undefined>, import("valibot").DescriptionAction<SelectorKind.Variable, "Selector kind that determines where matching is applied.">]>;
195
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
196
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
197
+ }, undefined>, import("valibot").StrictObjectSchema<{
198
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
199
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
200
+ }, undefined>, import("valibot").StrictObjectSchema<{
201
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
202
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
203
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
204
+ type: MatcherType.String;
205
+ } | {
206
+ path?: string | undefined;
207
+ type: MatcherType.ObjectKey;
208
+ } | {
209
+ path?: string | undefined;
210
+ type: MatcherType.ObjectValue;
211
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
212
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
213
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
214
+ callTarget?: number | "all" | "first" | "last" | undefined;
215
+ kind: SelectorKind.Callee;
216
+ match?: ({
217
+ type: MatcherType.String;
218
+ } | {
219
+ path?: string | undefined;
220
+ type: MatcherType.ObjectKey;
221
+ } | {
222
+ path?: string | undefined;
223
+ type: MatcherType.ObjectValue;
224
+ })[] | undefined;
225
+ name: string;
226
+ path?: string | undefined;
227
+ } | {
228
+ callTarget?: number | "all" | "first" | "last" | undefined;
229
+ kind: SelectorKind.Callee;
230
+ match?: ({
231
+ type: MatcherType.String;
232
+ } | {
233
+ path?: string | undefined;
234
+ type: MatcherType.ObjectKey;
235
+ } | {
236
+ path?: string | undefined;
237
+ type: MatcherType.ObjectValue;
238
+ })[] | undefined;
239
+ name?: string | undefined;
240
+ path: string;
241
+ } | {
242
+ kind: SelectorKind.Attribute;
243
+ match?: ({
244
+ type: MatcherType.String;
245
+ } | {
246
+ path?: string | undefined;
247
+ type: MatcherType.ObjectKey;
248
+ } | {
249
+ path?: string | undefined;
250
+ type: MatcherType.ObjectValue;
251
+ })[] | undefined;
252
+ name: string;
253
+ } | {
254
+ kind: SelectorKind.Tag;
255
+ match?: ({
256
+ type: MatcherType.String;
257
+ } | {
258
+ path?: string | undefined;
259
+ type: MatcherType.ObjectKey;
260
+ } | {
261
+ path?: string | undefined;
262
+ type: MatcherType.ObjectValue;
263
+ })[] | undefined;
264
+ name: string;
265
+ } | {
266
+ kind: SelectorKind.Variable;
267
+ match?: ({
268
+ type: MatcherType.String;
269
+ } | {
270
+ path?: string | undefined;
271
+ type: MatcherType.ObjectKey;
272
+ } | {
273
+ path?: string | undefined;
274
+ type: MatcherType.ObjectValue;
275
+ })[] | undefined;
276
+ name: string;
277
+ })[], "Flat list of selectors that should get linted.">]>;
278
+ export type Selectors = InferOutput<typeof SELECTORS_SCHEMA>;
279
+ export declare const SELECTORS_OPTION_SCHEMA: import("valibot").StrictObjectSchema<{
280
+ readonly selectors: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
281
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Attribute, undefined>, import("valibot").DescriptionAction<SelectorKind.Attribute, "Selector kind that determines where matching is applied.">]>;
282
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
283
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
284
+ }, undefined>, import("valibot").StrictObjectSchema<{
285
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
286
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
287
+ }, undefined>, import("valibot").StrictObjectSchema<{
288
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
289
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
290
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
291
+ type: MatcherType.String;
292
+ } | {
293
+ path?: string | undefined;
294
+ type: MatcherType.ObjectKey;
295
+ } | {
296
+ path?: string | undefined;
297
+ type: MatcherType.ObjectValue;
298
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
299
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
300
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
301
+ readonly callTarget: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"all", undefined>, import("valibot").LiteralSchema<"first", undefined>, import("valibot").LiteralSchema<"last", undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, import("valibot").DescriptionAction<number | "all" | "first" | "last" | undefined, "Optional call target for curried callees: index, first, last, or all.">]>;
302
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Callee, undefined>, import("valibot").DescriptionAction<SelectorKind.Callee, "Selector kind that determines where matching is applied.">]>;
303
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
304
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
305
+ }, undefined>, import("valibot").StrictObjectSchema<{
306
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
307
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
308
+ }, undefined>, import("valibot").StrictObjectSchema<{
309
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
310
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
311
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
312
+ type: MatcherType.String;
313
+ } | {
314
+ path?: string | undefined;
315
+ type: MatcherType.ObjectKey;
316
+ } | {
317
+ path?: string | undefined;
318
+ type: MatcherType.ObjectValue;
319
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
320
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
321
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for callee paths that should be linted.">]>, undefined>;
322
+ }, undefined>, import("valibot").StrictObjectSchema<{
323
+ readonly callTarget: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"all", undefined>, import("valibot").LiteralSchema<"first", undefined>, import("valibot").LiteralSchema<"last", undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, import("valibot").DescriptionAction<number | "all" | "first" | "last" | undefined, "Optional call target for curried callees: index, first, last, or all.">]>;
324
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Callee, undefined>, import("valibot").DescriptionAction<SelectorKind.Callee, "Selector kind that determines where matching is applied.">]>;
325
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
326
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
327
+ }, undefined>, import("valibot").StrictObjectSchema<{
328
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
329
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
330
+ }, undefined>, import("valibot").StrictObjectSchema<{
331
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
332
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
333
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
334
+ type: MatcherType.String;
335
+ } | {
336
+ path?: string | undefined;
337
+ type: MatcherType.ObjectKey;
338
+ } | {
339
+ path?: string | undefined;
340
+ type: MatcherType.ObjectValue;
341
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
342
+ readonly name: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>, undefined>;
343
+ readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for callee paths that should be linted.">]>;
344
+ }, undefined>], undefined>, import("valibot").StrictObjectSchema<{
345
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Tag, undefined>, import("valibot").DescriptionAction<SelectorKind.Tag, "Selector kind that determines where matching is applied.">]>;
346
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
347
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
348
+ }, undefined>, import("valibot").StrictObjectSchema<{
349
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
350
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
351
+ }, undefined>, import("valibot").StrictObjectSchema<{
352
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
353
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
354
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
355
+ type: MatcherType.String;
356
+ } | {
357
+ path?: string | undefined;
358
+ type: MatcherType.ObjectKey;
359
+ } | {
360
+ path?: string | undefined;
361
+ type: MatcherType.ObjectValue;
362
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
363
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
364
+ }, undefined>, import("valibot").StrictObjectSchema<{
365
+ readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<SelectorKind.Variable, undefined>, import("valibot").DescriptionAction<SelectorKind.Variable, "Selector kind that determines where matching is applied.">]>;
366
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
367
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
368
+ }, undefined>, import("valibot").StrictObjectSchema<{
369
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
370
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
371
+ }, undefined>, import("valibot").StrictObjectSchema<{
372
+ readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
373
+ readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
374
+ }, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
375
+ type: MatcherType.String;
376
+ } | {
377
+ path?: string | undefined;
378
+ type: MatcherType.ObjectKey;
379
+ } | {
380
+ path?: string | undefined;
381
+ type: MatcherType.ObjectValue;
382
+ })[] | undefined, "Optional list of matchers that will be applied.">]>;
383
+ readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
384
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
385
+ callTarget?: number | "all" | "first" | "last" | undefined;
386
+ kind: SelectorKind.Callee;
387
+ match?: ({
388
+ type: MatcherType.String;
389
+ } | {
390
+ path?: string | undefined;
391
+ type: MatcherType.ObjectKey;
392
+ } | {
393
+ path?: string | undefined;
394
+ type: MatcherType.ObjectValue;
395
+ })[] | undefined;
396
+ name: string;
397
+ path?: string | undefined;
398
+ } | {
399
+ callTarget?: number | "all" | "first" | "last" | undefined;
400
+ kind: SelectorKind.Callee;
401
+ match?: ({
402
+ type: MatcherType.String;
403
+ } | {
404
+ path?: string | undefined;
405
+ type: MatcherType.ObjectKey;
406
+ } | {
407
+ path?: string | undefined;
408
+ type: MatcherType.ObjectValue;
409
+ })[] | undefined;
410
+ name?: string | undefined;
411
+ path: string;
412
+ } | {
413
+ kind: SelectorKind.Attribute;
414
+ match?: ({
415
+ type: MatcherType.String;
416
+ } | {
417
+ path?: string | undefined;
418
+ type: MatcherType.ObjectKey;
419
+ } | {
420
+ path?: string | undefined;
421
+ type: MatcherType.ObjectValue;
422
+ })[] | undefined;
423
+ name: string;
424
+ } | {
425
+ kind: SelectorKind.Tag;
426
+ match?: ({
427
+ type: MatcherType.String;
428
+ } | {
429
+ path?: string | undefined;
430
+ type: MatcherType.ObjectKey;
431
+ } | {
432
+ path?: string | undefined;
433
+ type: MatcherType.ObjectValue;
434
+ })[] | undefined;
435
+ name: string;
436
+ } | {
437
+ kind: SelectorKind.Variable;
438
+ match?: ({
439
+ type: MatcherType.String;
440
+ } | {
441
+ path?: string | undefined;
442
+ type: MatcherType.ObjectKey;
443
+ } | {
444
+ path?: string | undefined;
445
+ type: MatcherType.ObjectValue;
446
+ })[] | undefined;
447
+ name: string;
448
+ })[], "Flat list of selectors that should get linted.">]>, ({
449
+ kind: SelectorKind.Callee;
450
+ match: {
451
+ type: MatcherType.String;
452
+ }[];
453
+ name: string;
454
+ } | {
455
+ kind: SelectorKind.Callee;
456
+ match: {
457
+ type: MatcherType.ObjectKey;
458
+ }[];
459
+ name: string;
460
+ } | {
461
+ kind: SelectorKind.Callee;
462
+ match: {
463
+ path: string;
464
+ type: MatcherType.ObjectValue;
465
+ }[];
466
+ name: string;
467
+ } | {
468
+ kind: SelectorKind.Attribute;
469
+ name: string;
470
+ match?: never;
471
+ } | {
472
+ kind: SelectorKind.Attribute;
473
+ match: ({
474
+ type: MatcherType.String;
475
+ } | {
476
+ type: MatcherType.ObjectKey;
477
+ })[];
478
+ name: string;
479
+ } | {
480
+ kind: SelectorKind.Variable;
481
+ match: {
482
+ type: MatcherType.String;
483
+ }[];
484
+ name: string;
485
+ })[]>;
486
+ }, undefined>;
487
+ export type SelectorsOptions = InferOutput<typeof SELECTORS_OPTION_SCHEMA>;
488
+ //# sourceMappingURL=selectors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../src/options/schemas/selectors.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAE7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqH3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAK1B,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAG5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAElC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { array, description, literal, number, optional, pipe, strictObject, string, union } from "valibot";
2
+ import { DEFAULT_SELECTORS } from "../default-options.js";
3
+ import { MatcherType, SelectorKind } from "../../types/rule.js";
4
+ const STRING_SELECTOR_MATCHER_SCHEMA = strictObject({
5
+ type: pipe(literal(MatcherType.String), description("Matcher type that will be applied."))
6
+ });
7
+ const OBJECT_KEY_SELECTOR_MATCHER_SCHEMA = strictObject({
8
+ path: optional(pipe(string(), description("Regular expression that filters the object key and matches the content for further processing in a group."))),
9
+ type: pipe(literal(MatcherType.ObjectKey), description("Matcher type that will be applied."))
10
+ });
11
+ const OBJECT_VALUE_SELECTOR_MATCHER_SCHEMA = strictObject({
12
+ path: optional(pipe(string(), description("Regular expression that filters the object value and matches the content for further processing in a group."))),
13
+ type: pipe(literal(MatcherType.ObjectValue), description("Matcher type that will be applied."))
14
+ });
15
+ const SELECTOR_MATCH_SCHEMA = pipe(optional(array(union([
16
+ STRING_SELECTOR_MATCHER_SCHEMA,
17
+ OBJECT_KEY_SELECTOR_MATCHER_SCHEMA,
18
+ OBJECT_VALUE_SELECTOR_MATCHER_SCHEMA
19
+ ]))), description("Optional list of matchers that will be applied."));
20
+ const SELECTOR_NAME_SCHEMA = pipe(string(), description("Regular expression for names that should be linted."));
21
+ const CALLEE_SELECTOR_PATH_SCHEMA = pipe(string(), description("Regular expression for callee paths that should be linted."));
22
+ const CALLEE_SELECTOR_CALL_TARGET_SCHEMA = pipe(optional(union([
23
+ literal("all"),
24
+ literal("first"),
25
+ literal("last"),
26
+ number()
27
+ ])), description("Optional call target for curried callees: index, first, last, or all."));
28
+ const ATTRIBUTE_SELECTOR_SCHEMA = strictObject({
29
+ kind: pipe(literal(SelectorKind.Attribute), description("Selector kind that determines where matching is applied.")),
30
+ match: SELECTOR_MATCH_SCHEMA,
31
+ name: SELECTOR_NAME_SCHEMA
32
+ });
33
+ const CALLEE_SELECTOR_SCHEMA = union([
34
+ strictObject({
35
+ callTarget: CALLEE_SELECTOR_CALL_TARGET_SCHEMA,
36
+ kind: pipe(literal(SelectorKind.Callee), description("Selector kind that determines where matching is applied.")),
37
+ match: SELECTOR_MATCH_SCHEMA,
38
+ name: SELECTOR_NAME_SCHEMA,
39
+ path: optional(CALLEE_SELECTOR_PATH_SCHEMA)
40
+ }),
41
+ strictObject({
42
+ callTarget: CALLEE_SELECTOR_CALL_TARGET_SCHEMA,
43
+ kind: pipe(literal(SelectorKind.Callee), description("Selector kind that determines where matching is applied.")),
44
+ match: SELECTOR_MATCH_SCHEMA,
45
+ name: optional(SELECTOR_NAME_SCHEMA),
46
+ path: CALLEE_SELECTOR_PATH_SCHEMA
47
+ })
48
+ ]);
49
+ const TAG_SELECTOR_SCHEMA = strictObject({
50
+ kind: pipe(literal(SelectorKind.Tag), description("Selector kind that determines where matching is applied.")),
51
+ match: SELECTOR_MATCH_SCHEMA,
52
+ name: SELECTOR_NAME_SCHEMA
53
+ });
54
+ const VARIABLE_SELECTOR_SCHEMA = strictObject({
55
+ kind: pipe(literal(SelectorKind.Variable), description("Selector kind that determines where matching is applied.")),
56
+ match: SELECTOR_MATCH_SCHEMA,
57
+ name: SELECTOR_NAME_SCHEMA
58
+ });
59
+ export const SELECTOR_SCHEMA = union([
60
+ ATTRIBUTE_SELECTOR_SCHEMA,
61
+ CALLEE_SELECTOR_SCHEMA,
62
+ TAG_SELECTOR_SCHEMA,
63
+ VARIABLE_SELECTOR_SCHEMA
64
+ ]);
65
+ export const SELECTORS_SCHEMA = pipe(array(SELECTOR_SCHEMA), description("Flat list of selectors that should get linted."));
66
+ export const SELECTORS_OPTION_SCHEMA = strictObject({
67
+ selectors: optional(SELECTORS_SCHEMA, DEFAULT_SELECTORS)
68
+ });
69
+ //# sourceMappingURL=selectors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../src/options/schemas/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,KAAK,EACN,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAK7E,MAAM,8BAA8B,GAAG,YAAY,CAAC;IAClD,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,EAC3B,WAAW,CAAC,oCAAoC,CAAC,CAClD;CACF,CAAC,CAAC;AAEH,MAAM,kCAAkC,GAAG,YAAY,CAAC;IACtD,IAAI,EAAE,QAAQ,CAAC,IAAI,CACjB,MAAM,EAAE,EACR,WAAW,CAAC,2GAA2G,CAAC,CACzH,CAAC;IACF,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,EAC9B,WAAW,CAAC,oCAAoC,CAAC,CAClD;CACF,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAG,YAAY,CAAC;IACxD,IAAI,EAAE,QAAQ,CAAC,IAAI,CACjB,MAAM,EAAE,EACR,WAAW,CAAC,6GAA6G,CAAC,CAC3H,CAAC;IACF,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,EAChC,WAAW,CAAC,oCAAoC,CAAC,CAClD;CACF,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG,IAAI,CAChC,QAAQ,CACN,KAAK,CACH,KAAK,CAAC;IACJ,8BAA8B;IAC9B,kCAAkC;IAClC,oCAAoC;CACrC,CAAC,CACH,CACF,EACD,WAAW,CAAC,iDAAiD,CAAC,CAC/D,CAAC;AAEF,MAAM,oBAAoB,GAAG,IAAI,CAC/B,MAAM,EAAE,EACR,WAAW,CAAC,qDAAqD,CAAC,CACnE,CAAC;AAEF,MAAM,2BAA2B,GAAG,IAAI,CACtC,MAAM,EAAE,EACR,WAAW,CAAC,4DAA4D,CAAC,CAC1E,CAAC;AAEF,MAAM,kCAAkC,GAAG,IAAI,CAC7C,QAAQ,CACN,KAAK,CAAC;IACJ,OAAO,CAAC,KAAK,CAAC;IACd,OAAO,CAAC,OAAO,CAAC;IAChB,OAAO,CAAC,MAAM,CAAC;IACf,MAAM,EAAE;CACT,CAAC,CACH,EACD,WAAW,CAAC,uEAAuE,CAAC,CACrF,CAAC;AAEF,MAAM,yBAAyB,GAAG,YAAY,CAAC;IAC7C,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,EAC/B,WAAW,CAAC,0DAA0D,CAAC,CACxE;IACD,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,oBAAoB;CAC3B,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,KAAK,CAAC;IACnC,YAAY,CAAC;QACX,UAAU,EAAE,kCAAkC;QAC9C,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,EAC5B,WAAW,CAAC,0DAA0D,CAAC,CACxE;QACD,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ,CAAC,2BAA2B,CAAC;KAC5C,CAAC;IACF,YAAY,CAAC;QACX,UAAU,EAAE,kCAAkC;QAC9C,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,EAC5B,WAAW,CAAC,0DAA0D,CAAC,CACxE;QACD,KAAK,EAAE,qBAAqB;QAC5B,IAAI,EAAE,QAAQ,CAAC,oBAAoB,CAAC;QACpC,IAAI,EAAE,2BAA2B;KAClC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,YAAY,CAAC;IACvC,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,EACzB,WAAW,CAAC,0DAA0D,CAAC,CACxE;IACD,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,oBAAoB;CAC3B,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,YAAY,CAAC;IAC5C,IAAI,EAAE,IAAI,CACR,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,EAC9B,WAAW,CAAC,0DAA0D,CAAC,CACxE;IACD,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE,oBAAoB;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;IACnC,yBAAyB;IACzB,sBAAsB;IACtB,mBAAmB;IACnB,wBAAwB;CACzB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAClC,KAAK,CAAC,eAAe,CAAC,EACtB,WAAW,CAAC,gDAAgD,CAAC,CAC9D,CAAC;AAIF,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC;IAClD,SAAS,EAAE,QAAQ,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;CACzD,CAAC,CAAC"}
@@ -94,7 +94,7 @@ export declare const TAGS_OPTIONS_SCHEMA: import("valibot").StrictObjectSchema<{
94
94
  } | {
95
95
  match: import("../../types/rule.js").MatcherType.ObjectValue;
96
96
  pathPattern?: string | undefined;
97
- })[]])[], "List of template literal tags that should get linted.">]>, never[]>;
97
+ })[]])[], "List of template literal tags that should get linted.">]>, undefined>;
98
98
  }, undefined>;
99
99
  export type TagsOptions = InferOutput<typeof TAGS_OPTIONS_SCHEMA>;
100
100
  export {};