UNPKG

eslint-plugin-readable-tailwind

Version:

auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.

34 lines 739 B
import { MatcherType } from "../../types/rule.js"; export const TV_STRINGS = [ "tv", [ { match: MatcherType.String } ] ]; export const TV_VARIANT_VALUES = [ "tv", [ { match: MatcherType.ObjectValue, pathPattern: "^variants.*$" } ] ]; export const TV_COMPOUND_VARIANTS_CLASS = [ "tv", [ { match: MatcherType.ObjectValue, pathPattern: "^compoundVariants\\[\\d+\\]\\.(?:className|class)$" } ] ]; /** @see https://github.com/nextui-org/tailwind-variants?tab=readme-ov-file */ export const TV = [ TV_STRINGS, TV_VARIANT_VALUES, TV_COMPOUND_VARIANTS_CLASS ]; //# sourceMappingURL=tv.js.map