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.02 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 CALLEE_MATCHER_SCHEMA = pipe(tuple([
pipe(string(), description("Callee 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."));
const CALLEE_NAME_SCHEMA = pipe(string(), description("Callee name for which children get linted."));
export const CALLEES_SCHEMA = pipe(array(union([
CALLEE_MATCHER_SCHEMA,
CALLEE_NAME_SCHEMA
])), description("List of function names which arguments should get linted."));
export const CALLEES_OPTION_SCHEMA = strictObject({
callees: optional(CALLEES_SCHEMA)
});
//# sourceMappingURL=callees.js.map