Skip to content
Interfaceeslint-config/prettierv2.5.0

TailwindPrettierOptions

Tailwind class-sorting options forwarded to prettier-plugin-tailwindcss.

interface TailwindPrettierOptions

attributes

Attribute names (or /regex/) whose values get class-sorted. No default.

attributes?: string[]

functions

Function and tagged-template names whose class strings get sorted (prettier-plugin-tailwindcss treats both via tailwindFunctions).

['cn', 'tw']

functions?: string[]

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;