eslint-plugin-better-tailwindcss
Version:
auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.
19 lines • 1 kB
JavaScript
import { array, description, optional, pipe, strictObject, string, tuple, union } from "valibot";
import { OBJECT_KEY_MATCHER_SCHEMA, OBJECT_VALUE_MATCHER_SCHEMA, STRING_MATCHER_SCHEMA } from "../schemas/matchers.js";
const TAG_MATCHER_CONFIG = pipe(tuple([
pipe(string(), description("Template literal tag for which children get linted if matched.")),
pipe(array(union([
STRING_MATCHER_SCHEMA,
OBJECT_KEY_MATCHER_SCHEMA,
OBJECT_VALUE_MATCHER_SCHEMA
])), description("List of matchers that will be applied."))
]), description("List of matchers that will automatically be matched."));
const TAG_NAME_CONFIG = pipe(string(), description("Template literal tag that should get linted."));
export const TAGS_SCHEMA = pipe(array(union([
TAG_MATCHER_CONFIG,
TAG_NAME_CONFIG
])), description("List of template literal tags that should get linted."));
export const TAGS_OPTIONS_SCHEMA = strictObject({
tags: optional(TAGS_SCHEMA)
});
//# sourceMappingURL=tags.js.map