Interfaceeslint-config/prettierv2.2.1
TailwindPrettierOptions
Tailwind class-sorting options forwarded to prettier-plugin-tailwindcss.
interface TailwindPrettierOptions- optional
attributes
Attribute names (or /regex/) whose values get class-sorted. No default.
attributes: string[]- optional
functions
Function and tagged-template names whose class strings get sorted (prettier-plugin-tailwindcss treats both via tailwindFunctions).
['cn', 'tw']
functions: string[]- optional
preserveDuplicates
Keeps duplicate classes uncollapsed
preserveDuplicates: boolean;Default:false
stylesheet
Path to the Tailwind entry stylesheet (the one with @import 'tailwindcss'). Required by v4.
stylesheet: string;