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.07 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";
export const ATTRIBUTE_MATCHER_CONFIG = pipe(tuple([
pipe(string(), description("Attribute name 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."));
export const ATTRIBUTE_NAME_CONFIG = pipe(string(), description("Attribute name that for which children get linted."));
export const ATTRIBUTES_SCHEMA = pipe(array(union([
ATTRIBUTE_NAME_CONFIG,
ATTRIBUTE_MATCHER_CONFIG
])), description("List of attribute names that should get linted."));
export const ATTRIBUTES_OPTION_SCHEMA = strictObject({
attributes: optional(ATTRIBUTES_SCHEMA)
});
//# sourceMappingURL=attributes.js.map