eslint-plugin-better-tailwindcss 4.3.2 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/lib/api/defaults.d.ts +15 -0
- package/lib/api/defaults.d.ts.map +1 -1
- package/lib/api/types.d.ts +7 -2
- package/lib/api/types.d.ts.map +1 -1
- package/lib/api/types.js +4 -1
- package/lib/api/types.js.map +1 -1
- package/lib/async-utils/escape.d.ts.map +1 -1
- package/lib/async-utils/escape.js +2 -1
- package/lib/async-utils/escape.js.map +1 -1
- package/lib/async-utils/fs.d.ts +1 -1
- package/lib/async-utils/fs.d.ts.map +1 -1
- package/lib/async-utils/fs.js +2 -6
- package/lib/async-utils/fs.js.map +1 -1
- package/lib/async-utils/operations.d.ts +2 -0
- package/lib/async-utils/operations.d.ts.map +1 -1
- package/lib/async-utils/regex.d.ts +3 -0
- package/lib/async-utils/regex.d.ts.map +1 -0
- package/lib/async-utils/regex.js +32 -0
- package/lib/async-utils/regex.js.map +1 -0
- package/lib/async-utils/worker.d.ts.map +1 -1
- package/lib/async-utils/worker.js +3 -2
- package/lib/async-utils/worker.js.map +1 -1
- package/lib/configs/config.d.ts +2921 -33
- package/lib/configs/config.d.ts.map +1 -1
- package/lib/configs/config.js +4 -0
- package/lib/configs/config.js.map +1 -1
- package/lib/options/callees/cc.js +2 -2
- package/lib/options/callees/cc.js.map +1 -1
- package/lib/options/callees/clb.js +3 -3
- package/lib/options/callees/clb.js.map +1 -1
- package/lib/options/callees/clsx.js +2 -2
- package/lib/options/callees/clsx.js.map +1 -1
- package/lib/options/callees/cn.js +2 -2
- package/lib/options/callees/cn.js.map +1 -1
- package/lib/options/callees/cnb.js +2 -2
- package/lib/options/callees/cnb.js.map +1 -1
- package/lib/options/callees/ctl.js +1 -1
- package/lib/options/callees/ctl.js.map +1 -1
- package/lib/options/callees/cva.js +3 -3
- package/lib/options/callees/cva.js.map +1 -1
- package/lib/options/callees/cx.js +2 -2
- package/lib/options/callees/cx.js.map +1 -1
- package/lib/options/callees/dcnb.js +2 -2
- package/lib/options/callees/dcnb.js.map +1 -1
- package/lib/options/callees/objstr.js +2 -2
- package/lib/options/callees/objstr.js.map +1 -1
- package/lib/options/callees/tv.js +6 -6
- package/lib/options/callees/tv.js.map +1 -1
- package/lib/options/callees/twJoin.js +1 -1
- package/lib/options/callees/twJoin.js.map +1 -1
- package/lib/options/callees/twMerge.js +1 -1
- package/lib/options/callees/twMerge.js.map +1 -1
- package/lib/options/default-options.d.ts +31 -1
- package/lib/options/default-options.d.ts.map +1 -1
- package/lib/options/default-options.js +9 -3
- package/lib/options/default-options.js.map +1 -1
- package/lib/options/descriptions.d.ts +308 -2
- package/lib/options/descriptions.d.ts.map +1 -1
- package/lib/options/descriptions.js +3 -2
- package/lib/options/descriptions.js.map +1 -1
- package/lib/options/migrate.js +29 -12
- package/lib/options/migrate.js.map +1 -1
- package/lib/options/schemas/common.d.ts +4 -0
- package/lib/options/schemas/common.d.ts.map +1 -1
- package/lib/options/schemas/common.js +3 -0
- package/lib/options/schemas/common.js.map +1 -1
- package/lib/options/schemas/selectors.d.ts +806 -5
- package/lib/options/schemas/selectors.d.ts.map +1 -1
- package/lib/options/schemas/selectors.js +42 -11
- package/lib/options/schemas/selectors.js.map +1 -1
- package/lib/options/tags/twc.d.ts +36 -0
- package/lib/options/tags/twc.d.ts.map +1 -0
- package/lib/options/tags/twc.js +26 -0
- package/lib/options/tags/twc.js.map +1 -0
- package/lib/options/tags/twx.d.ts +36 -0
- package/lib/options/tags/twx.d.ts.map +1 -0
- package/lib/options/tags/twx.js +26 -0
- package/lib/options/tags/twx.js.map +1 -0
- package/lib/parsers/angular.d.ts.map +1 -1
- package/lib/parsers/angular.js +22 -12
- package/lib/parsers/angular.js.map +1 -1
- package/lib/parsers/es.d.ts +11 -2
- package/lib/parsers/es.d.ts.map +1 -1
- package/lib/parsers/es.js +249 -55
- package/lib/parsers/es.js.map +1 -1
- package/lib/parsers/svelte.d.ts.map +1 -1
- package/lib/parsers/svelte.js +6 -64
- package/lib/parsers/svelte.js.map +1 -1
- package/lib/parsers/vue.d.ts.map +1 -1
- package/lib/parsers/vue.js +5 -65
- package/lib/parsers/vue.js.map +1 -1
- package/lib/rules/enforce-canonical-classes.d.ts +172 -2
- package/lib/rules/enforce-canonical-classes.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-class-order.d.ts +172 -2
- package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-class-order.js +14 -2
- package/lib/rules/enforce-consistent-class-order.js.map +1 -1
- package/lib/rules/enforce-consistent-important-position.d.ts +172 -2
- package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-important-position.js +2 -1
- package/lib/rules/enforce-consistent-important-position.js.map +1 -1
- package/lib/rules/enforce-consistent-line-wrapping.d.ts +172 -2
- package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-line-wrapping.js +30 -0
- package/lib/rules/enforce-consistent-line-wrapping.js.map +1 -1
- package/lib/rules/enforce-consistent-variable-syntax.d.ts +172 -2
- package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-variable-syntax.js +3 -2
- package/lib/rules/enforce-consistent-variable-syntax.js.map +1 -1
- package/lib/rules/enforce-consistent-variant-order.d.ts +426 -0
- package/lib/rules/enforce-consistent-variant-order.d.ts.map +1 -0
- package/lib/rules/enforce-consistent-variant-order.js +75 -0
- package/lib/rules/enforce-consistent-variant-order.js.map +1 -0
- package/lib/rules/enforce-logical-properties.d.ts +426 -0
- package/lib/rules/enforce-logical-properties.d.ts.map +1 -0
- package/lib/rules/enforce-logical-properties.js +118 -0
- package/lib/rules/enforce-logical-properties.js.map +1 -0
- package/lib/rules/enforce-shorthand-classes.d.ts +172 -2
- package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -1
- package/lib/rules/no-conflicting-classes.d.ts +172 -2
- package/lib/rules/no-conflicting-classes.d.ts.map +1 -1
- package/lib/rules/no-deprecated-classes.d.ts +173 -3
- package/lib/rules/no-deprecated-classes.d.ts.map +1 -1
- package/lib/rules/no-duplicate-classes.d.ts +172 -2
- package/lib/rules/no-duplicate-classes.d.ts.map +1 -1
- package/lib/rules/no-restricted-classes.d.ts +172 -2
- package/lib/rules/no-restricted-classes.d.ts.map +1 -1
- package/lib/rules/no-unknown-classes.d.ts +172 -2
- package/lib/rules/no-unknown-classes.d.ts.map +1 -1
- package/lib/rules/no-unknown-classes.js +8 -7
- package/lib/rules/no-unknown-classes.js.map +1 -1
- package/lib/rules/no-unnecessary-whitespace.d.ts +172 -2
- package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -1
- package/lib/tailwindcss/dissect-classes.async.v3.d.ts.map +1 -1
- package/lib/tailwindcss/dissect-classes.async.v3.js +4 -3
- package/lib/tailwindcss/dissect-classes.async.v3.js.map +1 -1
- package/lib/tailwindcss/dissect-classes.async.v4.d.ts.map +1 -1
- package/lib/tailwindcss/dissect-classes.async.v4.js +6 -5
- package/lib/tailwindcss/dissect-classes.async.v4.js.map +1 -1
- package/lib/tailwindcss/tailwind.async.worker.v3.js +5 -0
- package/lib/tailwindcss/tailwind.async.worker.v3.js.map +1 -1
- package/lib/tailwindcss/tailwind.async.worker.v4.js +6 -0
- package/lib/tailwindcss/tailwind.async.worker.v4.js.map +1 -1
- package/lib/tailwindcss/variant-order.async.v3.d.ts +3 -0
- package/lib/tailwindcss/variant-order.async.v3.d.ts.map +1 -0
- package/lib/tailwindcss/variant-order.async.v3.js +4 -0
- package/lib/tailwindcss/variant-order.async.v3.js.map +1 -0
- package/lib/tailwindcss/variant-order.async.v4.d.ts +3 -0
- package/lib/tailwindcss/variant-order.async.v4.d.ts.map +1 -0
- package/lib/tailwindcss/variant-order.async.v4.js +18 -0
- package/lib/tailwindcss/variant-order.async.v4.js.map +1 -0
- package/lib/tailwindcss/variant-order.d.ts +11 -0
- package/lib/tailwindcss/variant-order.d.ts.map +1 -0
- package/lib/tailwindcss/variant-order.js +15 -0
- package/lib/tailwindcss/variant-order.js.map +1 -0
- package/lib/types/rule.d.ts +27 -5
- package/lib/types/rule.d.ts.map +1 -1
- package/lib/types/rule.js +7 -0
- package/lib/types/rule.js.map +1 -1
- package/lib/utils/context.js +5 -5
- package/lib/utils/context.js.map +1 -1
- package/lib/utils/matchers.d.ts +1 -3
- package/lib/utils/matchers.d.ts.map +1 -1
- package/lib/utils/matchers.js +56 -37
- package/lib/utils/matchers.js.map +1 -1
- package/lib/utils/project.d.ts +4 -0
- package/lib/utils/project.d.ts.map +1 -0
- package/lib/utils/project.js +22 -0
- package/lib/utils/project.js.map +1 -0
- package/lib/utils/rule.d.ts +1 -1
- package/lib/utils/rule.d.ts.map +1 -1
- package/lib/utils/rule.js +50 -10
- package/lib/utils/rule.js.map +1 -1
- package/lib/utils/utils.d.ts.map +1 -1
- package/lib/utils/utils.js +6 -5
- package/lib/utils/utils.js.map +1 -1
- package/package.json +22 -21
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InferOutput } from "valibot";
|
|
2
2
|
export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
3
|
+
readonly cwd: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The working directory to resolve tailwindcss and the config from. Useful in monorepo setups.">]>, undefined>;
|
|
3
4
|
readonly rootFontSize: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").DescriptionAction<number, "The root font size in pixels.">]>, undefined>;
|
|
4
5
|
readonly detectComponentClasses: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").BooleanSchema<undefined>, import("valibot").DescriptionAction<boolean, "Whether to automatically detect custom component classes from the tailwindcss config.">]>, false>;
|
|
5
6
|
readonly tsconfig: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The path to the tsconfig file. Is used to resolve path aliases in the tsconfig.">]>, undefined>;
|
|
@@ -148,6 +149,25 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
148
149
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
149
150
|
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>;
|
|
150
151
|
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
152
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
153
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
154
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
155
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
156
|
+
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>;
|
|
157
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
158
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
159
|
+
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>;
|
|
160
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
161
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
162
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
163
|
+
} | {
|
|
164
|
+
path?: string | undefined;
|
|
165
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
166
|
+
} | {
|
|
167
|
+
path?: string | undefined;
|
|
168
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
169
|
+
})[], "List of nested matchers that target the return value of anonymous functions.">]>;
|
|
170
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, "Matcher type that will be applied.">]>;
|
|
151
171
|
}, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
152
172
|
type: import("../types/rule.js").MatcherType.String;
|
|
153
173
|
} | {
|
|
@@ -156,6 +176,17 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
156
176
|
} | {
|
|
157
177
|
path?: string | undefined;
|
|
158
178
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
179
|
+
} | {
|
|
180
|
+
match: ({
|
|
181
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
182
|
+
} | {
|
|
183
|
+
path?: string | undefined;
|
|
184
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
185
|
+
} | {
|
|
186
|
+
path?: string | undefined;
|
|
187
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
188
|
+
})[];
|
|
189
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
159
190
|
})[] | undefined, "Optional list of matchers that will be applied.">]>;
|
|
160
191
|
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
|
|
161
192
|
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
@@ -169,6 +200,25 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
169
200
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
170
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>;
|
|
171
202
|
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
203
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
204
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
205
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
206
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
207
|
+
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>;
|
|
208
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
209
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
210
|
+
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>;
|
|
211
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
212
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
213
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
214
|
+
} | {
|
|
215
|
+
path?: string | undefined;
|
|
216
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
217
|
+
} | {
|
|
218
|
+
path?: string | undefined;
|
|
219
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
220
|
+
})[], "List of nested matchers that target the return value of anonymous functions.">]>;
|
|
221
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, "Matcher type that will be applied.">]>;
|
|
172
222
|
}, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
173
223
|
type: import("../types/rule.js").MatcherType.String;
|
|
174
224
|
} | {
|
|
@@ -177,9 +227,22 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
177
227
|
} | {
|
|
178
228
|
path?: string | undefined;
|
|
179
229
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
230
|
+
} | {
|
|
231
|
+
match: ({
|
|
232
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
233
|
+
} | {
|
|
234
|
+
path?: string | undefined;
|
|
235
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
236
|
+
} | {
|
|
237
|
+
path?: string | undefined;
|
|
238
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
239
|
+
})[];
|
|
240
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
180
241
|
})[] | undefined, "Optional list of matchers that will be applied.">]>;
|
|
181
242
|
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
|
|
182
243
|
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>;
|
|
244
|
+
readonly targetArgument: 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 argument target for call arguments: index, first, last, or all.">]>;
|
|
245
|
+
readonly targetCall: 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.">]>;
|
|
183
246
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
184
247
|
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.">]>;
|
|
185
248
|
readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").SelectorKind.Callee, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").SelectorKind.Callee, "Selector kind that determines where matching is applied.">]>;
|
|
@@ -191,6 +254,25 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
191
254
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
192
255
|
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>;
|
|
193
256
|
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
257
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
258
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
259
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
260
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
261
|
+
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>;
|
|
262
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
263
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
264
|
+
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>;
|
|
265
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
266
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
267
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
268
|
+
} | {
|
|
269
|
+
path?: string | undefined;
|
|
270
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
271
|
+
} | {
|
|
272
|
+
path?: string | undefined;
|
|
273
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
274
|
+
})[], "List of nested matchers that target the return value of anonymous functions.">]>;
|
|
275
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, "Matcher type that will be applied.">]>;
|
|
194
276
|
}, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
195
277
|
type: import("../types/rule.js").MatcherType.String;
|
|
196
278
|
} | {
|
|
@@ -199,10 +281,23 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
199
281
|
} | {
|
|
200
282
|
path?: string | undefined;
|
|
201
283
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
284
|
+
} | {
|
|
285
|
+
match: ({
|
|
286
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
287
|
+
} | {
|
|
288
|
+
path?: string | undefined;
|
|
289
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
290
|
+
} | {
|
|
291
|
+
path?: string | undefined;
|
|
292
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
293
|
+
})[];
|
|
294
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
202
295
|
})[] | undefined, "Optional list of matchers that will be applied.">]>;
|
|
203
296
|
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>;
|
|
204
297
|
readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for callee paths that should be linted.">]>;
|
|
205
|
-
|
|
298
|
+
readonly targetArgument: 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 argument target for call arguments: index, first, last, or all.">]>;
|
|
299
|
+
readonly targetCall: 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.">]>;
|
|
300
|
+
}, undefined>], undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
206
301
|
readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").SelectorKind.Tag, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").SelectorKind.Tag, "Selector kind that determines where matching is applied.">]>;
|
|
207
302
|
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
208
303
|
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
@@ -212,6 +307,25 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
212
307
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
213
308
|
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>;
|
|
214
309
|
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
310
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
311
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
312
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
313
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
314
|
+
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>;
|
|
315
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
316
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
317
|
+
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>;
|
|
318
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
319
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
320
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
321
|
+
} | {
|
|
322
|
+
path?: string | undefined;
|
|
323
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
324
|
+
} | {
|
|
325
|
+
path?: string | undefined;
|
|
326
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
327
|
+
})[], "List of nested matchers that target the return value of anonymous functions.">]>;
|
|
328
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, "Matcher type that will be applied.">]>;
|
|
215
329
|
}, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
216
330
|
type: import("../types/rule.js").MatcherType.String;
|
|
217
331
|
} | {
|
|
@@ -220,9 +334,72 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
220
334
|
} | {
|
|
221
335
|
path?: string | undefined;
|
|
222
336
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
337
|
+
} | {
|
|
338
|
+
match: ({
|
|
339
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
340
|
+
} | {
|
|
341
|
+
path?: string | undefined;
|
|
342
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
343
|
+
} | {
|
|
344
|
+
path?: string | undefined;
|
|
345
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
346
|
+
})[];
|
|
347
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
223
348
|
})[] | undefined, "Optional list of matchers that will be applied.">]>;
|
|
224
349
|
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
|
|
350
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for tag paths that should be linted.">]>, undefined>;
|
|
225
351
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
352
|
+
readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").SelectorKind.Tag, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").SelectorKind.Tag, "Selector kind that determines where matching is applied.">]>;
|
|
353
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
354
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
355
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
356
|
+
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>;
|
|
357
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
358
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
359
|
+
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>;
|
|
360
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
361
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
362
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
363
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
364
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
365
|
+
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>;
|
|
366
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
367
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
368
|
+
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>;
|
|
369
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
370
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
371
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
372
|
+
} | {
|
|
373
|
+
path?: string | undefined;
|
|
374
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
375
|
+
} | {
|
|
376
|
+
path?: string | undefined;
|
|
377
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
378
|
+
})[], "List of nested matchers that target the return value of anonymous functions.">]>;
|
|
379
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, "Matcher type that will be applied.">]>;
|
|
380
|
+
}, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
381
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
382
|
+
} | {
|
|
383
|
+
path?: string | undefined;
|
|
384
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
385
|
+
} | {
|
|
386
|
+
path?: string | undefined;
|
|
387
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
388
|
+
} | {
|
|
389
|
+
match: ({
|
|
390
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
391
|
+
} | {
|
|
392
|
+
path?: string | undefined;
|
|
393
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
394
|
+
} | {
|
|
395
|
+
path?: string | undefined;
|
|
396
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
397
|
+
})[];
|
|
398
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
399
|
+
})[] | undefined, "Optional list of matchers that will be applied.">]>;
|
|
400
|
+
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>;
|
|
401
|
+
readonly path: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for tag paths that should be linted.">]>;
|
|
402
|
+
}, undefined>], undefined>, import("valibot").StrictObjectSchema<{
|
|
226
403
|
readonly kind: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").SelectorKind.Variable, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").SelectorKind.Variable, "Selector kind that determines where matching is applied.">]>;
|
|
227
404
|
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
228
405
|
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
@@ -232,6 +409,25 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
232
409
|
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
233
410
|
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>;
|
|
234
411
|
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
412
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
413
|
+
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
414
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
415
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
416
|
+
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>;
|
|
417
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
418
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
419
|
+
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>;
|
|
420
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
421
|
+
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
422
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
423
|
+
} | {
|
|
424
|
+
path?: string | undefined;
|
|
425
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
426
|
+
} | {
|
|
427
|
+
path?: string | undefined;
|
|
428
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
429
|
+
})[], "List of nested matchers that target the return value of anonymous functions.">]>;
|
|
430
|
+
readonly type: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, undefined>, import("valibot").DescriptionAction<import("../types/rule.js").MatcherType.AnonymousFunctionReturn, "Matcher type that will be applied.">]>;
|
|
235
431
|
}, undefined>], undefined>, undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
236
432
|
type: import("../types/rule.js").MatcherType.String;
|
|
237
433
|
} | {
|
|
@@ -240,6 +436,17 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
240
436
|
} | {
|
|
241
437
|
path?: string | undefined;
|
|
242
438
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
439
|
+
} | {
|
|
440
|
+
match: ({
|
|
441
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
442
|
+
} | {
|
|
443
|
+
path?: string | undefined;
|
|
444
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
445
|
+
} | {
|
|
446
|
+
path?: string | undefined;
|
|
447
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
448
|
+
})[];
|
|
449
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
243
450
|
})[] | undefined, "Optional list of matchers that will be applied.">]>;
|
|
244
451
|
readonly name: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression for names that should be linted.">]>;
|
|
245
452
|
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
@@ -253,9 +460,22 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
253
460
|
} | {
|
|
254
461
|
path?: string | undefined;
|
|
255
462
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
463
|
+
} | {
|
|
464
|
+
match: ({
|
|
465
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
466
|
+
} | {
|
|
467
|
+
path?: string | undefined;
|
|
468
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
469
|
+
} | {
|
|
470
|
+
path?: string | undefined;
|
|
471
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
472
|
+
})[];
|
|
473
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
256
474
|
})[] | undefined;
|
|
257
475
|
name: string;
|
|
258
476
|
path?: string | undefined;
|
|
477
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
478
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
259
479
|
} | {
|
|
260
480
|
callTarget?: number | "all" | "first" | "last" | undefined;
|
|
261
481
|
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
@@ -267,11 +487,24 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
267
487
|
} | {
|
|
268
488
|
path?: string | undefined;
|
|
269
489
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
490
|
+
} | {
|
|
491
|
+
match: ({
|
|
492
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
493
|
+
} | {
|
|
494
|
+
path?: string | undefined;
|
|
495
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
496
|
+
} | {
|
|
497
|
+
path?: string | undefined;
|
|
498
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
499
|
+
})[];
|
|
500
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
270
501
|
})[] | undefined;
|
|
271
502
|
name?: string | undefined;
|
|
272
503
|
path: string;
|
|
504
|
+
targetArgument?: number | "all" | "first" | "last" | undefined;
|
|
505
|
+
targetCall?: number | "all" | "first" | "last" | undefined;
|
|
273
506
|
} | {
|
|
274
|
-
kind: import("../types/rule.js").SelectorKind.
|
|
507
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
275
508
|
match?: ({
|
|
276
509
|
type: import("../types/rule.js").MatcherType.String;
|
|
277
510
|
} | {
|
|
@@ -280,8 +513,20 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
280
513
|
} | {
|
|
281
514
|
path?: string | undefined;
|
|
282
515
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
516
|
+
} | {
|
|
517
|
+
match: ({
|
|
518
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
519
|
+
} | {
|
|
520
|
+
path?: string | undefined;
|
|
521
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
522
|
+
} | {
|
|
523
|
+
path?: string | undefined;
|
|
524
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
525
|
+
})[];
|
|
526
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
283
527
|
})[] | undefined;
|
|
284
528
|
name: string;
|
|
529
|
+
path?: string | undefined;
|
|
285
530
|
} | {
|
|
286
531
|
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
287
532
|
match?: ({
|
|
@@ -292,6 +537,41 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
292
537
|
} | {
|
|
293
538
|
path?: string | undefined;
|
|
294
539
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
540
|
+
} | {
|
|
541
|
+
match: ({
|
|
542
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
543
|
+
} | {
|
|
544
|
+
path?: string | undefined;
|
|
545
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
546
|
+
} | {
|
|
547
|
+
path?: string | undefined;
|
|
548
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
549
|
+
})[];
|
|
550
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
551
|
+
})[] | undefined;
|
|
552
|
+
name?: string | undefined;
|
|
553
|
+
path: string;
|
|
554
|
+
} | {
|
|
555
|
+
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
556
|
+
match?: ({
|
|
557
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
558
|
+
} | {
|
|
559
|
+
path?: string | undefined;
|
|
560
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
561
|
+
} | {
|
|
562
|
+
path?: string | undefined;
|
|
563
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
564
|
+
} | {
|
|
565
|
+
match: ({
|
|
566
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
567
|
+
} | {
|
|
568
|
+
path?: string | undefined;
|
|
569
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
570
|
+
} | {
|
|
571
|
+
path?: string | undefined;
|
|
572
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
573
|
+
})[];
|
|
574
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
295
575
|
})[] | undefined;
|
|
296
576
|
name: string;
|
|
297
577
|
} | {
|
|
@@ -304,6 +584,17 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
304
584
|
} | {
|
|
305
585
|
path?: string | undefined;
|
|
306
586
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
587
|
+
} | {
|
|
588
|
+
match: ({
|
|
589
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
590
|
+
} | {
|
|
591
|
+
path?: string | undefined;
|
|
592
|
+
type: import("../types/rule.js").MatcherType.ObjectKey;
|
|
593
|
+
} | {
|
|
594
|
+
path?: string | undefined;
|
|
595
|
+
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
596
|
+
})[];
|
|
597
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
307
598
|
})[] | undefined;
|
|
308
599
|
name: string;
|
|
309
600
|
})[], "Flat list of selectors that should get linted.">]>, ({
|
|
@@ -325,6 +616,21 @@ export declare const COMMON_OPTIONS: import("valibot").StrictObjectSchema<{
|
|
|
325
616
|
type: import("../types/rule.js").MatcherType.ObjectValue;
|
|
326
617
|
}[];
|
|
327
618
|
name: string;
|
|
619
|
+
} | {
|
|
620
|
+
kind: import("../types/rule.js").SelectorKind.Tag;
|
|
621
|
+
path: string;
|
|
622
|
+
} | {
|
|
623
|
+
kind: import("../types/rule.js").SelectorKind.Callee;
|
|
624
|
+
match: ({
|
|
625
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
626
|
+
match?: never;
|
|
627
|
+
} | {
|
|
628
|
+
match: {
|
|
629
|
+
type: import("../types/rule.js").MatcherType.String;
|
|
630
|
+
}[];
|
|
631
|
+
type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn;
|
|
632
|
+
})[];
|
|
633
|
+
path: string;
|
|
328
634
|
} | {
|
|
329
635
|
kind: import("../types/rule.js").SelectorKind.Attribute;
|
|
330
636
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../../src/options/descriptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../../src/options/descriptions.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAazB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { strictObject } from "valibot";
|
|
2
2
|
import { ATTRIBUTES_OPTION_SCHEMA } from "./schemas/attributes.js";
|
|
3
3
|
import { CALLEES_OPTION_SCHEMA } from "./schemas/callees.js";
|
|
4
|
-
import { DETECT_COMPONENT_CLASSES_OPTION_SCHEMA, ENTRYPOINT_OPTION_SCHEMA, MESSAGE_STYLE_OPTION_SCHEMA, ROOT_FONT_SIZE_OPTION_SCHEMA, TAILWIND_OPTION_SCHEMA, TSCONFIG_OPTION_SCHEMA } from "./schemas/common.js";
|
|
4
|
+
import { CWD_OPTION_SCHEMA, DETECT_COMPONENT_CLASSES_OPTION_SCHEMA, ENTRYPOINT_OPTION_SCHEMA, MESSAGE_STYLE_OPTION_SCHEMA, ROOT_FONT_SIZE_OPTION_SCHEMA, TAILWIND_OPTION_SCHEMA, TSCONFIG_OPTION_SCHEMA } from "./schemas/common.js";
|
|
5
5
|
import { SELECTORS_OPTION_SCHEMA } from "./schemas/selectors.js";
|
|
6
6
|
import { TAGS_OPTIONS_SCHEMA } from "./schemas/tags.js";
|
|
7
7
|
import { VARIABLES_OPTION_SCHEMA } from "./schemas/variables.js";
|
|
@@ -16,6 +16,7 @@ export const COMMON_OPTIONS = strictObject({
|
|
|
16
16
|
...TAILWIND_OPTION_SCHEMA.entries,
|
|
17
17
|
...TSCONFIG_OPTION_SCHEMA.entries,
|
|
18
18
|
...DETECT_COMPONENT_CLASSES_OPTION_SCHEMA.entries,
|
|
19
|
-
...ROOT_FONT_SIZE_OPTION_SCHEMA.entries
|
|
19
|
+
...ROOT_FONT_SIZE_OPTION_SCHEMA.entries,
|
|
20
|
+
...CWD_OPTION_SCHEMA.entries
|
|
20
21
|
});
|
|
21
22
|
//# sourceMappingURL=descriptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../src/options/descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EACL,sCAAsC,EACtC,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAK1F,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACzC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,qBAAqB,CAAC,OAAO;IAChC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,mBAAmB,CAAC,OAAO;IAC9B,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,sBAAsB,CAAC,OAAO;IACjC,GAAG,sBAAsB,CAAC,OAAO;IACjC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,4BAA4B,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../src/options/descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EACL,iBAAiB,EACjB,sCAAsC,EACtC,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAK1F,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACzC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,qBAAqB,CAAC,OAAO;IAChC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,mBAAmB,CAAC,OAAO;IAC9B,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,sBAAsB,CAAC,OAAO;IACjC,GAAG,sBAAsB,CAAC,OAAO;IACjC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,iBAAiB,CAAC,OAAO;CAC7B,CAAC,CAAC"}
|
package/lib/options/migrate.js
CHANGED
|
@@ -66,6 +66,9 @@ function toSelectorMatcher(matcher) {
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
function toLegacyMatcher(matcher) {
|
|
69
|
+
if (matcher.type === MatcherType.AnonymousFunctionReturn) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
69
72
|
if (matcher.type === MatcherType.String) {
|
|
70
73
|
return {
|
|
71
74
|
match: matcher.type
|
|
@@ -79,37 +82,51 @@ function toLegacyMatcher(matcher) {
|
|
|
79
82
|
};
|
|
80
83
|
}
|
|
81
84
|
function migrateLegacySelector(selector, kind) {
|
|
82
|
-
|
|
85
|
+
const name = typeof selector === "string" ? selector : selector[0];
|
|
86
|
+
const path = kind === SelectorKind.Callee || kind === SelectorKind.Tag ? name : undefined;
|
|
87
|
+
const matchers = typeof selector === "string" ? undefined : selector[1].map(toSelectorMatcher);
|
|
88
|
+
if (matchers === undefined) {
|
|
83
89
|
return {
|
|
84
90
|
kind,
|
|
85
|
-
name
|
|
91
|
+
name,
|
|
92
|
+
...path ? { path } : {}
|
|
86
93
|
};
|
|
87
94
|
}
|
|
88
95
|
return {
|
|
89
96
|
kind,
|
|
90
|
-
match:
|
|
91
|
-
name
|
|
97
|
+
match: matchers,
|
|
98
|
+
name,
|
|
99
|
+
...path ? { path } : {}
|
|
92
100
|
};
|
|
93
101
|
}
|
|
94
102
|
function migrateFlatSelector(selector) {
|
|
95
|
-
if (selector.kind === SelectorKind.Callee) {
|
|
96
|
-
if (selector.name === undefined) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
103
|
+
if (selector.kind === SelectorKind.Callee || selector.kind === SelectorKind.Tag) {
|
|
99
104
|
if (selector.match === undefined) {
|
|
100
|
-
return selector.name;
|
|
105
|
+
return selector.name ?? selector.path;
|
|
106
|
+
}
|
|
107
|
+
const legacyMatchers = selector.match
|
|
108
|
+
.map(toLegacyMatcher)
|
|
109
|
+
.filter((matcher) => matcher !== undefined);
|
|
110
|
+
if (legacyMatchers.length !== selector.match.length) {
|
|
111
|
+
return;
|
|
101
112
|
}
|
|
102
113
|
return [
|
|
103
|
-
selector.name,
|
|
104
|
-
|
|
114
|
+
selector.name ?? selector.path,
|
|
115
|
+
legacyMatchers
|
|
105
116
|
];
|
|
106
117
|
}
|
|
107
118
|
if (selector.match === undefined) {
|
|
108
119
|
return selector.name;
|
|
109
120
|
}
|
|
121
|
+
const legacyMatchers = selector.match
|
|
122
|
+
.map(toLegacyMatcher)
|
|
123
|
+
.filter((matcher) => matcher !== undefined);
|
|
124
|
+
if (legacyMatchers.length !== selector.match.length) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
110
127
|
return [
|
|
111
128
|
selector.name,
|
|
112
|
-
|
|
129
|
+
legacyMatchers
|
|
113
130
|
];
|
|
114
131
|
}
|
|
115
132
|
//# sourceMappingURL=migrate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../src/options/migrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAkB7E,MAAM,UAAU,qCAAqC,CAAC,MAA6B;IACjF,MAAM,SAAS,GAAc,EAAE,CAAC;IAEhC,IAAG,MAAM,CAAC,UAAU,EAAC,CAAC;QACpB,KAAI,MAAM,iBAAiB,IAAI,MAAM,CAAC,UAAU,EAAC,CAAC;YAChD,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IACD,IAAG,MAAM,CAAC,OAAO,EAAC,CAAC;QACjB,KAAI,MAAM,cAAc,IAAI,MAAM,CAAC,OAAO,EAAC,CAAC;YAC1C,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;QAC7E,CAAC;IACH,CAAC;IACD,IAAG,MAAM,CAAC,IAAI,EAAC,CAAC;QACd,KAAI,MAAM,WAAW,IAAI,MAAM,CAAC,IAAI,EAAC,CAAC;YACpC,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IACD,IAAG,MAAM,CAAC,SAAS,EAAC,CAAC;QACnB,KAAI,MAAM,gBAAgB,IAAI,MAAM,CAAC,SAAS,EAAC,CAAC;YAC9C,SAAS,CAAC,IAAI,CA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,KAAK,KAAK,SAAS,EAAC,CAAC;YAC/B,OAAO,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAK,CAAC;QACzC,CAAC;QAED,MAAM,cAAc,GAAG,QAAQ,CAAC,KAAK;aAClC,GAAG,CAAC,eAAe,CAAC;aACpB,MAAM,CAAC,CAAC,OAAO,EAAsB,EAAE,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC;QAElE,IAAG,cAAc,CAAC,MAAM,KAAK,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAC,CAAC;YAClD,OAAO;QACT,CAAC;QAED,OAAO;YACL,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAK;YAC/B,cAAc;SACf,CAAC;IACJ,CAAC;IAED,IAAG,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAC,CAAC;QAC/B,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,MAAM,cAAc,GAAG,QAAQ,CAAC,KAAK;SAClC,GAAG,CAAC,eAAe,CAAC;SACpB,MAAM,CAAC,CAAC,OAAO,EAAsB,EAAE,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC;IAElE,IAAG,cAAc,CAAC,MAAM,KAAK,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAC,CAAC;QAClD,OAAO;IACT,CAAC;IAED,OAAO;QACL,QAAQ,CAAC,IAAI;QACb,cAAc;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -23,4 +23,8 @@ export declare const ROOT_FONT_SIZE_OPTION_SCHEMA: import("valibot").StrictObjec
|
|
|
23
23
|
readonly rootFontSize: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").DescriptionAction<number, "The root font size in pixels.">]>, undefined>;
|
|
24
24
|
}, undefined>;
|
|
25
25
|
export type RootFontSizeOption = InferOutput<typeof ROOT_FONT_SIZE_OPTION_SCHEMA>;
|
|
26
|
+
export declare const CWD_OPTION_SCHEMA: import("valibot").StrictObjectSchema<{
|
|
27
|
+
readonly cwd: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The working directory to resolve tailwindcss and the config from. Useful in monorepo setups.">]>, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
export type CwdOption = InferOutput<typeof CWD_OPTION_SCHEMA>;
|
|
26
30
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/options/schemas/common.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,wBAAwB;;aAQnC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB;;aAQjC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;aAQjC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAExE,eAAO,MAAM,2BAA2B;;aActC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF,eAAO,MAAM,sCAAsC;;aAQjD,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,WAAW,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEtG,eAAO,MAAM,4BAA4B;;aAQvC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/options/schemas/common.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,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