33 lines
758 B
TypeScript
33 lines
758 B
TypeScript
import { Parser, Printer, SupportOption } from 'prettier'
|
|
|
|
export interface PluginOptions {
|
|
/**
|
|
* Path to the Tailwind config file.
|
|
*/
|
|
tailwindConfig?: string
|
|
|
|
/**
|
|
* Path to the Tailwind entry point (v4+)
|
|
*/
|
|
tailwindEntryPoint?: string
|
|
|
|
/**
|
|
* List of custom function and tag names that contain classes.
|
|
*/
|
|
tailwindFunctions?: string[]
|
|
|
|
/**
|
|
* List of custom attributes that contain classes.
|
|
*/
|
|
tailwindAttributes?: string[]
|
|
}
|
|
|
|
declare module 'prettier' {
|
|
interface RequiredOptions extends PluginOptions {}
|
|
interface ParserOptions extends PluginOptions {}
|
|
}
|
|
|
|
export const options: Record<keyof PluginOptions, SupportOption>
|
|
export const parsers: Record<string, Parser>
|
|
export const printers: Record<string, Printer>
|