eslint-plugin-better-tailwindcss 3.7.7 → 3.7.9
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/lib/cjs/parsers/angular.d.ts +0 -11
- package/lib/cjs/parsers/angular.d.ts.map +1 -1
- package/lib/cjs/parsers/angular.js +79 -49
- package/lib/cjs/parsers/angular.js.map +1 -1
- package/lib/cjs/parsers/es.d.ts.map +1 -1
- package/lib/cjs/parsers/es.js +2 -11
- package/lib/cjs/parsers/es.js.map +1 -1
- package/lib/cjs/parsers/svelte.js +0 -1
- package/lib/cjs/parsers/svelte.js.map +1 -1
- package/lib/cjs/parsers/vue.js +0 -1
- package/lib/cjs/parsers/vue.js.map +1 -1
- package/lib/cjs/utils/matchers.js +1 -1
- package/lib/cjs/utils/matchers.js.map +1 -1
- package/lib/cjs/utils/utils.d.ts +1 -0
- package/lib/cjs/utils/utils.d.ts.map +1 -1
- package/lib/cjs/utils/utils.js +9 -0
- package/lib/cjs/utils/utils.js.map +1 -1
- package/lib/esm/parsers/angular.d.ts +0 -11
- package/lib/esm/parsers/angular.d.ts.map +1 -1
- package/lib/esm/parsers/angular.js +83 -50
- package/lib/esm/parsers/angular.js.map +1 -1
- package/lib/esm/parsers/es.d.ts.map +1 -1
- package/lib/esm/parsers/es.js +1 -10
- package/lib/esm/parsers/es.js.map +1 -1
- package/lib/esm/parsers/svelte.js +0 -1
- package/lib/esm/parsers/svelte.js.map +1 -1
- package/lib/esm/parsers/vue.js +0 -1
- package/lib/esm/parsers/vue.js.map +1 -1
- package/lib/esm/utils/matchers.js +1 -1
- package/lib/esm/utils/matchers.js.map +1 -1
- package/lib/esm/utils/utils.d.ts +1 -0
- package/lib/esm/utils/utils.d.ts.map +1 -1
- package/lib/esm/utils/utils.js +8 -0
- package/lib/esm/utils/utils.js.map +1 -1
- package/package.json +6 -6
- package/lib/cjs/async-utils/config.v3.d.ts +0 -2
- package/lib/cjs/async-utils/config.v3.d.ts.map +0 -1
- package/lib/cjs/async-utils/config.v3.js +0 -15
- package/lib/cjs/async-utils/config.v3.js.map +0 -1
- package/lib/cjs/async-utils/config.v4.d.ts +0 -3
- package/lib/cjs/async-utils/config.v4.d.ts.map +0 -1
- package/lib/cjs/async-utils/config.v4.js +0 -20
- package/lib/cjs/async-utils/config.v4.js.map +0 -1
- package/lib/cjs/async-utils/string.d.ts +0 -2
- package/lib/cjs/async-utils/string.d.ts.map +0 -1
- package/lib/cjs/async-utils/string.js +0 -10
- package/lib/cjs/async-utils/string.js.map +0 -1
- package/lib/cjs/async-utils/version.d.ts +0 -15
- package/lib/cjs/async-utils/version.d.ts.map +0 -1
- package/lib/cjs/async-utils/version.js +0 -38
- package/lib/cjs/async-utils/version.js.map +0 -1
- package/lib/cjs/options/schemas/attributes.d.ts +0 -104
- package/lib/cjs/options/schemas/attributes.d.ts.map +0 -1
- package/lib/cjs/options/schemas/attributes.js +0 -23
- package/lib/cjs/options/schemas/attributes.js.map +0 -1
- package/lib/cjs/options/schemas/callees.d.ts +0 -108
- package/lib/cjs/options/schemas/callees.d.ts.map +0 -1
- package/lib/cjs/options/schemas/callees.js +0 -23
- package/lib/cjs/options/schemas/callees.js.map +0 -1
- package/lib/cjs/options/schemas/common.d.ts +0 -14
- package/lib/cjs/options/schemas/common.d.ts.map +0 -1
- package/lib/cjs/options/schemas/common.js +0 -14
- package/lib/cjs/options/schemas/common.js.map +0 -1
- package/lib/cjs/options/schemas/matchers.d.ts +0 -13
- package/lib/cjs/options/schemas/matchers.d.ts.map +0 -1
- package/lib/cjs/options/schemas/matchers.js +0 -17
- package/lib/cjs/options/schemas/matchers.js.map +0 -1
- package/lib/cjs/options/schemas/tags.d.ts +0 -101
- package/lib/cjs/options/schemas/tags.d.ts.map +0 -1
- package/lib/cjs/options/schemas/tags.js +0 -23
- package/lib/cjs/options/schemas/tags.js.map +0 -1
- package/lib/cjs/options/schemas/variables.d.ts +0 -102
- package/lib/cjs/options/schemas/variables.d.ts.map +0 -1
- package/lib/cjs/options/schemas/variables.js +0 -23
- package/lib/cjs/options/schemas/variables.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v3.d.ts +0 -3
- package/lib/cjs/tailwindcss/class-variants.async.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v3.js +0 -46
- package/lib/cjs/tailwindcss/class-variants.async.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v4.d.ts +0 -3
- package/lib/cjs/tailwindcss/class-variants.async.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.v4.js +0 -14
- package/lib/cjs/tailwindcss/class-variants.async.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.d.ts +0 -2
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.js +0 -10
- package/lib/cjs/tailwindcss/class-variants.async.worker.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.d.ts +0 -2
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.js +0 -10
- package/lib/cjs/tailwindcss/class-variants.async.worker.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.d.ts +0 -14
- package/lib/cjs/tailwindcss/class-variants.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/class-variants.js +0 -24
- package/lib/cjs/tailwindcss/class-variants.js.map +0 -1
- package/lib/cjs/tailwindcss/config.d.ts +0 -16
- package/lib/cjs/tailwindcss/config.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/config.js +0 -51
- package/lib/cjs/tailwindcss/config.js.map +0 -1
- package/lib/cjs/tailwindcss/config.v3.d.ts +0 -2
- package/lib/cjs/tailwindcss/config.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/config.v3.js +0 -15
- package/lib/cjs/tailwindcss/config.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/config.v4.d.ts +0 -3
- package/lib/cjs/tailwindcss/config.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/config.v4.js +0 -20
- package/lib/cjs/tailwindcss/config.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.d.ts +0 -3
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.js +0 -7
- package/lib/cjs/tailwindcss/conflicting-classes.async.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.d.ts +0 -4
- package/lib/cjs/tailwindcss/shorthand-classes.async.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.js +0 -129
- package/lib/cjs/tailwindcss/shorthand-classes.async.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.d.ts +0 -3
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.js +0 -54
- package/lib/cjs/tailwindcss/shorthand-classes.async.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.d.ts +0 -3
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.js +0 -54
- package/lib/cjs/tailwindcss/shorthand-classes.async.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.d.ts +0 -2
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.js +0 -10
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v3.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.d.ts +0 -2
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.js +0 -10
- package/lib/cjs/tailwindcss/shorthand-classes.async.worker.v4.js.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.d.ts +0 -15
- package/lib/cjs/tailwindcss/shorthand-classes.d.ts.map +0 -1
- package/lib/cjs/tailwindcss/shorthand-classes.js +0 -24
- package/lib/cjs/tailwindcss/shorthand-classes.js.map +0 -1
- package/lib/esm/async-utils/config.v3.d.ts +0 -2
- package/lib/esm/async-utils/config.v3.d.ts.map +0 -1
- package/lib/esm/async-utils/config.v3.js +0 -12
- package/lib/esm/async-utils/config.v3.js.map +0 -1
- package/lib/esm/async-utils/config.v4.d.ts +0 -3
- package/lib/esm/async-utils/config.v4.d.ts.map +0 -1
- package/lib/esm/async-utils/config.v4.js +0 -16
- package/lib/esm/async-utils/config.v4.js.map +0 -1
- package/lib/esm/async-utils/string.d.ts +0 -2
- package/lib/esm/async-utils/string.d.ts.map +0 -1
- package/lib/esm/async-utils/string.js +0 -7
- package/lib/esm/async-utils/string.js.map +0 -1
- package/lib/esm/async-utils/version.d.ts +0 -15
- package/lib/esm/async-utils/version.d.ts.map +0 -1
- package/lib/esm/async-utils/version.js +0 -37
- package/lib/esm/async-utils/version.js.map +0 -1
- package/lib/esm/options/schemas/attributes.d.ts +0 -104
- package/lib/esm/options/schemas/attributes.d.ts.map +0 -1
- package/lib/esm/options/schemas/attributes.js +0 -20
- package/lib/esm/options/schemas/attributes.js.map +0 -1
- package/lib/esm/options/schemas/callees.d.ts +0 -108
- package/lib/esm/options/schemas/callees.d.ts.map +0 -1
- package/lib/esm/options/schemas/callees.js +0 -20
- package/lib/esm/options/schemas/callees.js.map +0 -1
- package/lib/esm/options/schemas/common.d.ts +0 -14
- package/lib/esm/options/schemas/common.d.ts.map +0 -1
- package/lib/esm/options/schemas/common.js +0 -11
- package/lib/esm/options/schemas/common.js.map +0 -1
- package/lib/esm/options/schemas/matchers.d.ts +0 -13
- package/lib/esm/options/schemas/matchers.d.ts.map +0 -1
- package/lib/esm/options/schemas/matchers.js +0 -14
- package/lib/esm/options/schemas/matchers.js.map +0 -1
- package/lib/esm/options/schemas/tags.d.ts +0 -101
- package/lib/esm/options/schemas/tags.d.ts.map +0 -1
- package/lib/esm/options/schemas/tags.js +0 -20
- package/lib/esm/options/schemas/tags.js.map +0 -1
- package/lib/esm/options/schemas/variables.d.ts +0 -102
- package/lib/esm/options/schemas/variables.d.ts.map +0 -1
- package/lib/esm/options/schemas/variables.js +0 -20
- package/lib/esm/options/schemas/variables.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v3.d.ts +0 -3
- package/lib/esm/tailwindcss/class-variants.async.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v3.js +0 -10
- package/lib/esm/tailwindcss/class-variants.async.v3.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v4.d.ts +0 -3
- package/lib/esm/tailwindcss/class-variants.async.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.v4.js +0 -11
- package/lib/esm/tailwindcss/class-variants.async.v4.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.d.ts +0 -2
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.js +0 -8
- package/lib/esm/tailwindcss/class-variants.async.worker.v3.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.d.ts +0 -2
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.js +0 -8
- package/lib/esm/tailwindcss/class-variants.async.worker.v4.js.map +0 -1
- package/lib/esm/tailwindcss/class-variants.d.ts +0 -14
- package/lib/esm/tailwindcss/class-variants.d.ts.map +0 -1
- package/lib/esm/tailwindcss/class-variants.js +0 -21
- package/lib/esm/tailwindcss/class-variants.js.map +0 -1
- package/lib/esm/tailwindcss/config.d.ts +0 -16
- package/lib/esm/tailwindcss/config.d.ts.map +0 -1
- package/lib/esm/tailwindcss/config.js +0 -47
- package/lib/esm/tailwindcss/config.js.map +0 -1
- package/lib/esm/tailwindcss/config.v3.d.ts +0 -2
- package/lib/esm/tailwindcss/config.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/config.v3.js +0 -12
- package/lib/esm/tailwindcss/config.v3.js.map +0 -1
- package/lib/esm/tailwindcss/config.v4.d.ts +0 -3
- package/lib/esm/tailwindcss/config.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/config.v4.js +0 -16
- package/lib/esm/tailwindcss/config.v4.js.map +0 -1
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.d.ts +0 -3
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.js +0 -4
- package/lib/esm/tailwindcss/conflicting-classes.async.v3.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.d.ts +0 -4
- package/lib/esm/tailwindcss/shorthand-classes.async.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.js +0 -125
- package/lib/esm/tailwindcss/shorthand-classes.async.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.d.ts +0 -3
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.js +0 -51
- package/lib/esm/tailwindcss/shorthand-classes.async.v3.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.d.ts +0 -3
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.js +0 -51
- package/lib/esm/tailwindcss/shorthand-classes.async.v4.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.d.ts +0 -2
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.js +0 -8
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v3.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.d.ts +0 -2
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.js +0 -8
- package/lib/esm/tailwindcss/shorthand-classes.async.worker.v4.js.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.d.ts +0 -15
- package/lib/esm/tailwindcss/shorthand-classes.d.ts.map +0 -1
- package/lib/esm/tailwindcss/shorthand-classes.js +0 -21
- package/lib/esm/tailwindcss/shorthand-classes.js.map +0 -1
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import type { InferOutput } from "valibot";
|
|
2
|
-
declare const TAG_MATCHER_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
4
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
5
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
6
|
-
readonly pathPattern: 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>;
|
|
7
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
9
|
-
readonly pathPattern: 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>;
|
|
10
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
11
|
-
match: import("../../types/rule").MatcherType.String;
|
|
12
|
-
} | {
|
|
13
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
14
|
-
pathPattern?: string | undefined;
|
|
15
|
-
} | {
|
|
16
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
17
|
-
pathPattern?: string | undefined;
|
|
18
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
19
|
-
match: import("../../types/rule").MatcherType.String;
|
|
20
|
-
} | {
|
|
21
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
22
|
-
pathPattern?: string | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
25
|
-
pathPattern?: string | undefined;
|
|
26
|
-
})[]], "List of matchers that will automatically be matched.">]>;
|
|
27
|
-
export type TagMatchers = InferOutput<typeof TAG_MATCHER_CONFIG>;
|
|
28
|
-
declare const TAG_NAME_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>;
|
|
29
|
-
export type TagName = InferOutput<typeof TAG_NAME_CONFIG>;
|
|
30
|
-
export declare const TAGS_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
31
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
32
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
33
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
34
|
-
readonly pathPattern: 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>;
|
|
35
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
36
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
37
|
-
readonly pathPattern: 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>;
|
|
38
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
39
|
-
match: import("../../types/rule").MatcherType.String;
|
|
40
|
-
} | {
|
|
41
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
42
|
-
pathPattern?: string | undefined;
|
|
43
|
-
} | {
|
|
44
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
45
|
-
pathPattern?: string | undefined;
|
|
46
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
47
|
-
match: import("../../types/rule").MatcherType.String;
|
|
48
|
-
} | {
|
|
49
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
50
|
-
pathPattern?: string | undefined;
|
|
51
|
-
} | {
|
|
52
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
53
|
-
pathPattern?: string | undefined;
|
|
54
|
-
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
55
|
-
match: import("../../types/rule").MatcherType.String;
|
|
56
|
-
} | {
|
|
57
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
58
|
-
pathPattern?: string | undefined;
|
|
59
|
-
} | {
|
|
60
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
61
|
-
pathPattern?: string | undefined;
|
|
62
|
-
})[]])[], "List of template literal tags that should get linted.">]>;
|
|
63
|
-
export type Tags = InferOutput<typeof TAGS_SCHEMA>;
|
|
64
|
-
export declare const TAGS_OPTIONS_SCHEMA: import("valibot").ObjectSchema<{
|
|
65
|
-
readonly tags: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
66
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
67
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
68
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
69
|
-
readonly pathPattern: 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>;
|
|
70
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
71
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
72
|
-
readonly pathPattern: 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>;
|
|
73
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
74
|
-
match: import("../../types/rule").MatcherType.String;
|
|
75
|
-
} | {
|
|
76
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
77
|
-
pathPattern?: string | undefined;
|
|
78
|
-
} | {
|
|
79
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
80
|
-
pathPattern?: string | undefined;
|
|
81
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
82
|
-
match: import("../../types/rule").MatcherType.String;
|
|
83
|
-
} | {
|
|
84
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
85
|
-
pathPattern?: string | undefined;
|
|
86
|
-
} | {
|
|
87
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
88
|
-
pathPattern?: string | undefined;
|
|
89
|
-
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
90
|
-
match: import("../../types/rule").MatcherType.String;
|
|
91
|
-
} | {
|
|
92
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
93
|
-
pathPattern?: string | undefined;
|
|
94
|
-
} | {
|
|
95
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
96
|
-
pathPattern?: string | undefined;
|
|
97
|
-
})[]])[], "List of template literal tags that should get linted.">]>, never[]>;
|
|
98
|
-
}, undefined>;
|
|
99
|
-
export type TagsOptions = InferOutput<typeof TAGS_OPTIONS_SCHEMA>;
|
|
100
|
-
export {};
|
|
101
|
-
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/tags.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;gEAkBvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,QAAA,MAAM,eAAe,qLAGpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAQvB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAEQ,CAAC;AAEzC,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TAGS_OPTIONS_SCHEMA = exports.TAGS_SCHEMA = void 0;
|
|
4
|
-
const valibot_1 = require("valibot");
|
|
5
|
-
const default_options_js_1 = require("../default-options.js");
|
|
6
|
-
const matchers_js_1 = require("../schemas/matchers.js");
|
|
7
|
-
const TAG_MATCHER_CONFIG = (0, valibot_1.pipe)((0, valibot_1.tuple)([
|
|
8
|
-
(0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Template literal tag for which children get linted if matched.")),
|
|
9
|
-
(0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
|
|
10
|
-
matchers_js_1.STRING_MATCHER_SCHEMA,
|
|
11
|
-
matchers_js_1.OBJECT_KEY_MATCHER_SCHEMA,
|
|
12
|
-
matchers_js_1.OBJECT_VALUE_MATCHER_SCHEMA
|
|
13
|
-
])), (0, valibot_1.description)("List of matchers that will be applied."))
|
|
14
|
-
]), (0, valibot_1.description)("List of matchers that will automatically be matched."));
|
|
15
|
-
const TAG_NAME_CONFIG = (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Template literal tag that should get linted."));
|
|
16
|
-
exports.TAGS_SCHEMA = (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
|
|
17
|
-
TAG_MATCHER_CONFIG,
|
|
18
|
-
TAG_NAME_CONFIG
|
|
19
|
-
])), (0, valibot_1.description)("List of template literal tags that should get linted."));
|
|
20
|
-
exports.TAGS_OPTIONS_SCHEMA = (0, valibot_1.object)({
|
|
21
|
-
tags: (0, valibot_1.optional)(exports.TAGS_SCHEMA, default_options_js_1.DEFAULT_TAG_NAMES)
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=tags.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../../src/options/schemas/tags.ts"],"names":[],"mappings":";;;AAAA,qCASiB;AAEjB,sFAAkF;AAClF,gFAIwD;AAMxD,MAAM,kBAAkB,GAAG,IAAA,cAAI,EAC7B,IAAA,eAAK,EAAC;IACJ,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,gEAAgE,CAAC,CAC9E;IACD,IAAA,cAAI,EACF,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;QACJ,mCAAqB;QACrB,uCAAyB;QACzB,yCAA2B;KAC5B,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,IAAA,qBAAW,EAAC,sDAAsD,CAAC,CACpE,CAAC;AAIF,MAAM,eAAe,GAAG,IAAA,cAAI,EAC1B,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,8CAA8C,CAAC,CAC5D,CAAC;AAIW,QAAA,WAAW,GAAG,IAAA,cAAI,EAC7B,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;IACJ,kBAAkB;IAClB,eAAe;CAChB,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,uDAAuD,CAAC,CACrE,CAAC;AAIW,QAAA,mBAAmB,GAAG,IAAA,gBAAM,EAAC;IACxC,IAAI,EAAE,IAAA,kBAAQ,EAAC,mBAAW,EAAE,sCAAiB,CAAC;CAC/C,CAAuC,CAAC"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import type { InferOutput } from "valibot";
|
|
2
|
-
export declare const VARIABLE_MATCHER_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
4
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
5
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
6
|
-
readonly pathPattern: 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>;
|
|
7
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
9
|
-
readonly pathPattern: 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>;
|
|
10
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
11
|
-
match: import("../../types/rule").MatcherType.String;
|
|
12
|
-
} | {
|
|
13
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
14
|
-
pathPattern?: string | undefined;
|
|
15
|
-
} | {
|
|
16
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
17
|
-
pathPattern?: string | undefined;
|
|
18
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
19
|
-
match: import("../../types/rule").MatcherType.String;
|
|
20
|
-
} | {
|
|
21
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
22
|
-
pathPattern?: string | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
25
|
-
pathPattern?: string | undefined;
|
|
26
|
-
})[]], "List of matchers that will automatically be matched.">]>;
|
|
27
|
-
export type VariableMatchers = InferOutput<typeof VARIABLE_MATCHER_CONFIG>;
|
|
28
|
-
export declare const VARIABLE_NAME_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>;
|
|
29
|
-
export type VariableName = InferOutput<typeof VARIABLE_NAME_CONFIG>;
|
|
30
|
-
export declare const VARIABLES_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
31
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
32
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
33
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
34
|
-
readonly pathPattern: 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>;
|
|
35
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
36
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
37
|
-
readonly pathPattern: 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>;
|
|
38
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
39
|
-
match: import("../../types/rule").MatcherType.String;
|
|
40
|
-
} | {
|
|
41
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
42
|
-
pathPattern?: string | undefined;
|
|
43
|
-
} | {
|
|
44
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
45
|
-
pathPattern?: string | undefined;
|
|
46
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
47
|
-
match: import("../../types/rule").MatcherType.String;
|
|
48
|
-
} | {
|
|
49
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
50
|
-
pathPattern?: string | undefined;
|
|
51
|
-
} | {
|
|
52
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
53
|
-
pathPattern?: string | undefined;
|
|
54
|
-
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
55
|
-
match: import("../../types/rule").MatcherType.String;
|
|
56
|
-
} | {
|
|
57
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
58
|
-
pathPattern?: string | undefined;
|
|
59
|
-
} | {
|
|
60
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
61
|
-
pathPattern?: string | undefined;
|
|
62
|
-
})[]])[], "List of variable names which values should get linted.">]>;
|
|
63
|
-
export type Variables = InferOutput<typeof VARIABLES_SCHEMA>;
|
|
64
|
-
export declare const VARIABLES_OPTION_SCHEMA: import("valibot").ObjectSchema<{
|
|
65
|
-
readonly variables: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
66
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
|
|
67
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
68
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
|
|
69
|
-
readonly pathPattern: 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>;
|
|
70
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
71
|
-
readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
|
|
72
|
-
readonly pathPattern: 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>;
|
|
73
|
-
}, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
|
|
74
|
-
match: import("../../types/rule").MatcherType.String;
|
|
75
|
-
} | {
|
|
76
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
77
|
-
pathPattern?: string | undefined;
|
|
78
|
-
} | {
|
|
79
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
80
|
-
pathPattern?: string | undefined;
|
|
81
|
-
})[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
|
|
82
|
-
match: import("../../types/rule").MatcherType.String;
|
|
83
|
-
} | {
|
|
84
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
85
|
-
pathPattern?: string | undefined;
|
|
86
|
-
} | {
|
|
87
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
88
|
-
pathPattern?: string | undefined;
|
|
89
|
-
})[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Variable name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
|
|
90
|
-
match: import("../../types/rule").MatcherType.String;
|
|
91
|
-
} | {
|
|
92
|
-
match: import("../../types/rule").MatcherType.ObjectKey;
|
|
93
|
-
pathPattern?: string | undefined;
|
|
94
|
-
} | {
|
|
95
|
-
match: import("../../types/rule").MatcherType.ObjectValue;
|
|
96
|
-
pathPattern?: string | undefined;
|
|
97
|
-
})[]])[], "List of variable names which values should get linted.">]>, [string, {
|
|
98
|
-
match: import("../../types/rule").MatcherType.String;
|
|
99
|
-
}[]][]>;
|
|
100
|
-
}, undefined>;
|
|
101
|
-
export type VariablesOptions = InferOutput<typeof VARIABLES_OPTION_SCHEMA>;
|
|
102
|
-
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/variables.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;gEAkBnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,oBAAoB,qLAGhC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEpE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAQ5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAEI,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VARIABLES_OPTION_SCHEMA = exports.VARIABLES_SCHEMA = exports.VARIABLE_NAME_CONFIG = exports.VARIABLE_MATCHER_CONFIG = void 0;
|
|
4
|
-
const valibot_1 = require("valibot");
|
|
5
|
-
const default_options_js_1 = require("../default-options.js");
|
|
6
|
-
const matchers_js_1 = require("../schemas/matchers.js");
|
|
7
|
-
exports.VARIABLE_MATCHER_CONFIG = (0, valibot_1.pipe)((0, valibot_1.tuple)([
|
|
8
|
-
(0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Variable name for which children get linted if matched.")),
|
|
9
|
-
(0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
|
|
10
|
-
matchers_js_1.STRING_MATCHER_SCHEMA,
|
|
11
|
-
matchers_js_1.OBJECT_KEY_MATCHER_SCHEMA,
|
|
12
|
-
matchers_js_1.OBJECT_VALUE_MATCHER_SCHEMA
|
|
13
|
-
])), (0, valibot_1.description)("List of matchers that will be applied."))
|
|
14
|
-
]), (0, valibot_1.description)("List of matchers that will automatically be matched."));
|
|
15
|
-
exports.VARIABLE_NAME_CONFIG = (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Variable name for which children get linted."));
|
|
16
|
-
exports.VARIABLES_SCHEMA = (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
|
|
17
|
-
exports.VARIABLE_MATCHER_CONFIG,
|
|
18
|
-
exports.VARIABLE_NAME_CONFIG
|
|
19
|
-
])), (0, valibot_1.description)("List of variable names which values should get linted."));
|
|
20
|
-
exports.VARIABLES_OPTION_SCHEMA = (0, valibot_1.object)({
|
|
21
|
-
variables: (0, valibot_1.optional)(exports.VARIABLES_SCHEMA, default_options_js_1.DEFAULT_VARIABLE_NAMES)
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=variables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../../src/options/schemas/variables.ts"],"names":[],"mappings":";;;AAAA,qCASiB;AAEjB,sFAAuF;AACvF,gFAIwD;AAM3C,QAAA,uBAAuB,GAAG,IAAA,cAAI,EACzC,IAAA,eAAK,EAAC;IACJ,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,yDAAyD,CAAC,CACvE;IACD,IAAA,cAAI,EACF,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;QACJ,mCAAqB;QACrB,uCAAyB;QACzB,yCAA2B;KAC5B,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,IAAA,qBAAW,EAAC,sDAAsD,CAAC,CACpE,CAAC;AAIW,QAAA,oBAAoB,GAAG,IAAA,cAAI,EACtC,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,8CAA8C,CAAC,CAC5D,CAAC;AAIW,QAAA,gBAAgB,GAAG,IAAA,cAAI,EAClC,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;IACJ,+BAAuB;IACvB,4BAAoB;CACrB,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,wDAAwD,CAAC,CACtE,CAAC;AAIW,QAAA,uBAAuB,GAAG,IAAA,gBAAM,EAAC;IAC5C,SAAS,EAAE,IAAA,kBAAQ,EAAC,wBAAgB,EAAE,2CAAsB,CAAC;CAC9D,CAAuC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v3.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v3.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,wBAAwB,CAQ1F"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getClassVariants = getClassVariants;
|
|
37
|
-
const utils = __importStar(require("tailwindcss/lib/util/splitAtTopLevelOnly.js"));
|
|
38
|
-
function getClassVariants(context, classes) {
|
|
39
|
-
const separator = context.tailwindConfig.separator ?? ":";
|
|
40
|
-
return classes.map(className => {
|
|
41
|
-
const splitChunks = utils.splitAtTopLevelOnly?.(className, separator) ?? utils.default?.splitAtTopLevelOnly?.(className, separator);
|
|
42
|
-
const variants = splitChunks.slice(0, -1);
|
|
43
|
-
return [className, variants];
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=class-variants.async.v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v3.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v3.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,4CAQC;AAbD,oFAAsE;AAKtE,SAAgB,gBAAgB,CAAC,OAAY,EAAE,OAAiB;IAC9D,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,SAAS,IAAI,GAAG,CAAC;IAE1D,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;QAC7B,MAAM,WAAW,GAAG,KAAK,CAAC,mBAAmB,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,mBAAmB,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACpI,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC1C,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v4.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v4.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,wBAAwB,CAW1F"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getClassVariants = getClassVariants;
|
|
4
|
-
function getClassVariants(context, classes) {
|
|
5
|
-
return classes.map(className => {
|
|
6
|
-
const [parsed] = context.parseCandidate(className);
|
|
7
|
-
if (!parsed?.variants) {
|
|
8
|
-
return [className, []];
|
|
9
|
-
}
|
|
10
|
-
const variants = parsed.variants.map(variant => context.printVariant(variant)).reverse();
|
|
11
|
-
return [className, variants];
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=class-variants.async.v4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.v4.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.v4.ts"],"names":[],"mappings":";;AAGA,4CAWC;AAXD,SAAgB,gBAAgB,CAAC,OAAY,EAAE,OAAiB;IAC9D,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;QAC7B,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QAEnD,IAAG,CAAC,MAAM,EAAE,QAAQ,EAAC,CAAC;YACpB,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QACzB,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;QACzF,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v3.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v3.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const synckit_1 = require("synckit");
|
|
4
|
-
const class_variants_async_v3_js_1 = require("./class-variants.async.v3.js");
|
|
5
|
-
const context_async_v3_js_1 = require("./context.async.v3.js");
|
|
6
|
-
(0, synckit_1.runAsWorker)(async ({ classes, configPath }) => {
|
|
7
|
-
const context = await (0, context_async_v3_js_1.createTailwindContext)(configPath);
|
|
8
|
-
return (0, class_variants_async_v3_js_1.getClassVariants)(context, classes);
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=class-variants.async.worker.v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v3.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v3.ts"],"names":[],"mappings":";;AAAA,qCAAsC;AAEtC,6EAAgE;AAChE,+DAA8D;AAK9D,IAAA,qBAAW,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAA2B,EAAE,EAAE;IACrE,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAqB,EAAC,UAAU,CAAC,CAAC;IACxD,OAAO,IAAA,6CAAgB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v4.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v4.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const synckit_1 = require("synckit");
|
|
4
|
-
const class_variants_async_v4_js_1 = require("./class-variants.async.v4.js");
|
|
5
|
-
const context_async_v4_js_1 = require("./context.async.v4.js");
|
|
6
|
-
(0, synckit_1.runAsWorker)(async ({ classes, configPath }) => {
|
|
7
|
-
const context = await (0, context_async_v4_js_1.createTailwindContext)(configPath);
|
|
8
|
-
return (0, class_variants_async_v4_js_1.getClassVariants)(context, classes);
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=class-variants.async.worker.v4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.async.worker.v4.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.async.worker.v4.ts"],"names":[],"mappings":";;AAAA,qCAAsC;AAEtC,6EAAgE;AAChE,+DAA8D;AAK9D,IAAA,qBAAW,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAA2B,EAAE,EAAE;IACrE,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAqB,EAAC,UAAU,CAAC,CAAC;IACxD,OAAO,IAAA,6CAAgB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface GetClassVariantsRequest {
|
|
2
|
-
classes: string[];
|
|
3
|
-
configPath: string;
|
|
4
|
-
}
|
|
5
|
-
export type GetClassVariantsResponse = [className: string, variants: string[]][];
|
|
6
|
-
export declare function getClassVariants({ classes, configPath, cwd }: {
|
|
7
|
-
classes: string[];
|
|
8
|
-
configPath: string | undefined;
|
|
9
|
-
cwd: string;
|
|
10
|
-
}): {
|
|
11
|
-
classVariants: GetClassVariantsResponse;
|
|
12
|
-
warnings: ((Omit<import("../utils/utils").Warning<Record<string, any>>, "url"> & Partial<Pick<import("../utils/utils").Warning<Record<string, any>>, "url">>) | undefined)[];
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=class-variants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAEjF,wBAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE;;;EAKjI"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getClassVariants = getClassVariants;
|
|
4
|
-
const node_path_1 = require("node:path");
|
|
5
|
-
const synckit_1 = require("synckit");
|
|
6
|
-
const config_js_1 = require("./config.js");
|
|
7
|
-
const version_js_1 = require("../async-utils/version.js");
|
|
8
|
-
const worker_js_1 = require("../async-utils/worker.js");
|
|
9
|
-
function getClassVariants({ classes, configPath, cwd }) {
|
|
10
|
-
const { path, warning } = (0, config_js_1.getTailwindConfigPath)({ configPath, cwd });
|
|
11
|
-
const classVariants = getClassVariantsSync({ classes, configPath: path });
|
|
12
|
-
return { classVariants, warnings: [warning] };
|
|
13
|
-
}
|
|
14
|
-
const getClassVariantsSync = (0, synckit_1.createSyncFn)(getWorkerPath(), (0, worker_js_1.getWorkerOptions)());
|
|
15
|
-
function getWorkerPath() {
|
|
16
|
-
const { major } = (0, version_js_1.getTailwindcssVersion)();
|
|
17
|
-
return (0, node_path_1.resolve)(getCurrentDirectory(), `./class-variants.async.worker.v${major}.js`);
|
|
18
|
-
}
|
|
19
|
-
function getCurrentDirectory() {
|
|
20
|
-
// eslint-disable-next-line eslint-plugin-typescript/prefer-ts-expect-error
|
|
21
|
-
// @ts-ignore - `import.meta` doesn't exist in CommonJS -> will be transformed in build step
|
|
22
|
-
return __dirname;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=class-variants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-variants.js","sourceRoot":"","sources":["../../../src/tailwindcss/class-variants.ts"],"names":[],"mappings":";;AAkBA,4CAKC;AAvBD,yCAAoC;AAEpC,qCAAuC;AAEvC,wEAAiF;AACjF,oEAA4E;AAC5E,kEAAsE;AAYtE,SAAgB,gBAAgB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAuE;IAChI,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAA,iCAAqB,EAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IACrE,MAAM,aAAa,GAAG,oBAAoB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;IAE1E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,MAAM,oBAAoB,GAAG,IAAA,sBAAY,EAEvC,aAAa,EAAE,EAAE,IAAA,4BAAgB,GAAE,CAAC,CAAC;AAEvC,SAAS,aAAa;IACpB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,kCAAqB,GAAE,CAAC;IAC1C,OAAO,IAAA,mBAAO,EAAC,mBAAmB,EAAE,EAAE,kCAAkC,KAAK,KAAK,CAAC,CAAC;AACtF,CAAC;AAED,SAAS,mBAAmB;IAC1B,2EAA2E;IAC3E,4FAA4F;IAC5F,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;AAC7B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Warning } from "../utils/utils.js";
|
|
2
|
-
export interface GetConfigRequest {
|
|
3
|
-
configPath: string | undefined;
|
|
4
|
-
cwd: string;
|
|
5
|
-
}
|
|
6
|
-
export interface GetConfigResponse {
|
|
7
|
-
path: string;
|
|
8
|
-
warning: ConfigWarning | undefined;
|
|
9
|
-
}
|
|
10
|
-
type ConfigWarning = Omit<Warning, "url"> & Partial<Pick<Warning, "url">>;
|
|
11
|
-
export declare const getTailwindConfigPath: ({ configPath, cwd }: {
|
|
12
|
-
configPath: string | undefined;
|
|
13
|
-
cwd: string;
|
|
14
|
-
}) => GetConfigResponse;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/config.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAGjE,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,aAAa,GAAG,SAAS,CAAC;CACpC;AAED,KAAK,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,qBAAqB,GAAI,qBAAqB;IAAE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE,sBAgBzG,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTailwindConfigPath = void 0;
|
|
4
|
-
const node_path_1 = require("node:path");
|
|
5
|
-
const config_v3_js_1 = require("./config.v3.js");
|
|
6
|
-
const config_v4_js_1 = require("./config.v4.js");
|
|
7
|
-
const cache_js_1 = require("../async-utils/cache.js");
|
|
8
|
-
const version_js_1 = require("../async-utils/version.js");
|
|
9
|
-
const getTailwindConfigPath = ({ configPath, cwd }) => (0, cache_js_1.withCache)(configPath ?? "default", () => {
|
|
10
|
-
const version = (0, version_js_1.getTailwindcssVersion)();
|
|
11
|
-
if (version.major === 3 /* TailwindcssVersion.V3 */) {
|
|
12
|
-
const foundConfigPath = (0, config_v3_js_1.findTailwindConfigPath)(cwd, configPath);
|
|
13
|
-
return {
|
|
14
|
-
path: foundConfigPath ?? "default",
|
|
15
|
-
warning: getConfigPathWarning(configPath, foundConfigPath)
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
const foundConfigPath = (0, config_v4_js_1.findTailwindConfigPath)(cwd, configPath);
|
|
20
|
-
return {
|
|
21
|
-
path: foundConfigPath ?? (0, config_v4_js_1.findDefaultConfigPath)(cwd),
|
|
22
|
-
warning: getEntryPointWarning(configPath, foundConfigPath)
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
exports.getTailwindConfigPath = getTailwindConfigPath;
|
|
27
|
-
function getConfigPathWarning(configPath, foundConfigPath) {
|
|
28
|
-
if (!configPath) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
if (foundConfigPath && (0, node_path_1.resolve)(configPath) === (0, node_path_1.resolve)(foundConfigPath)) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
option: "tailwindConfig",
|
|
36
|
-
title: `No tailwind css config found at \`${configPath}\``
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function getEntryPointWarning(entryPoint, foundEntryPoint) {
|
|
40
|
-
if (!entryPoint) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (foundEntryPoint && (0, node_path_1.resolve)(entryPoint) === (0, node_path_1.resolve)(foundEntryPoint)) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
option: "entryPoint",
|
|
48
|
-
title: `No tailwind css entry point found at \`${entryPoint}\``
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/tailwindcss/config.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,8EAAiH;AACjH,8EAGqD;AACrD,gEAA8D;AAC9D,oEAAgG;AAiBzF,MAAM,qBAAqB,GAAG,CAAC,EAAE,UAAU,EAAE,GAAG,EAAoD,EAAE,EAAE,CAAC,IAAA,oBAAS,EAAoB,UAAU,IAAI,SAAS,EAAE,GAAG,EAAE;IACzK,MAAM,OAAO,GAAG,IAAA,kCAAqB,GAAE,CAAC;IAExC,IAAG,OAAO,CAAC,KAAK,kCAA0B,EAAC,CAAC;QAC1C,MAAM,eAAe,GAAG,IAAA,qCAAwB,EAAC,GAAG,EAAE,UAAU,CAAC,CAAC;QAClE,OAAO;YACL,IAAI,EAAE,eAAe,IAAI,SAAS;YAClC,OAAO,EAAE,oBAAoB,CAAC,UAAU,EAAE,eAAe,CAAC;SAC3D,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,MAAM,eAAe,GAAG,IAAA,qCAAwB,EAAC,GAAG,EAAE,UAAU,CAAC,CAAC;QAClE,OAAO;YACL,IAAI,EAAE,eAAe,IAAI,IAAA,oCAAqB,EAAC,GAAG,CAAC;YACnD,OAAO,EAAE,oBAAoB,CAAC,UAAU,EAAE,eAAe,CAAC;SAC3D,CAAC;IACJ,CAAC;AACH,CAAC,CAAC,CAAC;AAhBU,QAAA,qBAAqB,yBAgB/B;AAGH,SAAS,oBAAoB,CAAC,UAA8B,EAAE,eAAmC;IAC/F,IAAG,CAAC,UAAU,EAAC,CAAC;QACd,OAAO;IACT,CAAC;IAED,IAAG,eAAe,IAAI,IAAA,mBAAO,EAAC,UAAU,CAAC,KAAK,IAAA,mBAAO,EAAC,eAAe,CAAC,EAAC,CAAC;QACtE,OAAO;IACT,CAAC;IAED,OAAO;QACL,MAAM,EAAE,gBAAgB;QACxB,KAAK,EAAE,qCAAqC,UAAU,IAAI;KAC3D,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,UAA8B,EAAE,eAAmC;IAC/F,IAAG,CAAC,UAAU,EAAC,CAAC;QACd,OAAO;IACT,CAAC;IAED,IAAG,eAAe,IAAI,IAAA,mBAAO,EAAC,UAAU,CAAC,KAAK,IAAA,mBAAO,EAAC,eAAe,CAAC,EAAC,CAAC;QACtE,OAAO;IACT,CAAC;IAED,OAAO;QACL,MAAM,EAAE,YAAY;QACpB,KAAK,EAAE,0CAA0C,UAAU,IAAI;KAChE,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.v3.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/config.v3.ts"],"names":[],"mappings":"AAGA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAU3F"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findTailwindConfigPath = findTailwindConfigPath;
|
|
4
|
-
const fs_js_1 = require("../async-utils/fs.js");
|
|
5
|
-
function findTailwindConfigPath(cwd, configPath) {
|
|
6
|
-
const potentialPaths = [
|
|
7
|
-
...configPath ? [configPath] : [],
|
|
8
|
-
"tailwind.config.js",
|
|
9
|
-
"tailwind.config.cjs",
|
|
10
|
-
"tailwind.config.mjs",
|
|
11
|
-
"tailwind.config.ts"
|
|
12
|
-
];
|
|
13
|
-
return (0, fs_js_1.findFileRecursive)(cwd, potentialPaths);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=config.v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.v3.js","sourceRoot":"","sources":["../../../src/tailwindcss/config.v3.ts"],"names":[],"mappings":";;AAGA,wDAUC;AAbD,0DAAmE;AAGnE,SAAgB,sBAAsB,CAAC,GAAW,EAAE,UAAmB;IACrE,MAAM,cAAc,GAAG;QACrB,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;QACjC,oBAAoB;QACpB,qBAAqB;QACrB,qBAAqB;QACrB,oBAAoB;KACrB,CAAC;IAEF,OAAO,IAAA,yBAAiB,EAAC,GAAG,EAAE,cAAc,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.v4.d.ts","sourceRoot":"","sources":["../../../src/tailwindcss/config.v4.ts"],"names":[],"mappings":"AAIA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM3F;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQzD"}
|