UNPKG

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.06 kB
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 VARIABLE_MATCHER_CONFIG = pipe(tuple([ pipe(string(), description("Variable 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 VARIABLE_NAME_CONFIG = pipe(string(), description("Variable name for which children get linted.")); export const VARIABLES_SCHEMA = pipe(array(union([ VARIABLE_MATCHER_CONFIG, VARIABLE_NAME_CONFIG ])), description("List of variable names which values should get linted.")); export const VARIABLES_OPTION_SCHEMA = strictObject({ variables: optional(VARIABLES_SCHEMA) }); //# sourceMappingURL=variables.js.map