eslint-plugin-better-tailwindcss
Version:
auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.
34 lines • 715 B
JavaScript
import { MatcherType } from "../../types/rule.js";
export const CVA_STRINGS = [
"cva",
[
{
match: MatcherType.String
}
]
];
export const CVA_VARIANT_VALUES = [
"cva",
[
{
match: MatcherType.ObjectValue,
pathPattern: "^variants.*$"
}
]
];
export const CVA_COMPOUND_VARIANTS_CLASS = [
"cva",
[
{
match: MatcherType.ObjectValue,
pathPattern: "^compoundVariants\\[\\d+\\]\\.(?:className|class)$"
}
]
];
/** @see https://github.com/joe-bell/cva */
export const CVA = [
CVA_STRINGS,
CVA_VARIANT_VALUES,
CVA_COMPOUND_VARIANTS_CLASS
];
//# sourceMappingURL=cva.js.map