eslint-plugin-better-tailwindcss
Version:
auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.
39 lines • 926 B
JavaScript
import { MatcherType, SelectorKind } from "../../types/rule.js";
export const CLB_BASE_VALUES = {
kind: SelectorKind.Callee,
match: [
{
path: "^base$",
type: MatcherType.ObjectValue
}
],
name: "^clb$"
};
export const CLB_VARIANT_VALUES = {
kind: SelectorKind.Callee,
match: [
{
path: "^variants.*$",
type: MatcherType.ObjectValue
}
],
name: "^clb$"
};
export const CLB_COMPOUND_VARIANTS_CLASSES = {
kind: SelectorKind.Callee,
match: [
{
path: "^compoundVariants\\[\\d+\\]\\.classes$",
type: MatcherType.ObjectValue
}
],
name: "^clb$"
};
/** @see https://github.com/crswll/clb */
export const CLB = [
CLB_BASE_VALUES,
CLB_VARIANT_VALUES,
CLB_COMPOUND_VARIANTS_CLASSES
// TODO: add object key matcher: classes
];
//# sourceMappingURL=clb.js.map