eslint-plugin-better-tailwindcss
Version:
auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.
36 lines • 798 B
JavaScript
import { MatcherType } from "../../types/rule.js";
export const CLB_BASE_VALUES = [
"clb",
[
{
match: MatcherType.ObjectValue,
pathPattern: "^base$"
}
]
];
export const CLB_VARIANT_VALUES = [
"clb",
[
{
match: MatcherType.ObjectValue,
pathPattern: "^variants.*$"
}
]
];
export const CLB_COMPOUND_VARIANTS_CLASSES = [
"clb",
[
{
match: MatcherType.ObjectValue,
pathPattern: "^compoundVariants\\[\\d+\\]\\.classes$"
}
]
];
/** @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