import type { Linter } from 'eslint'; import type { StylisticConfigBase } from '../types'; /** * Prettier options for formatters */ export interface PrettierOptions { endOfLine?: 'auto' | 'lf' | 'crlf' | 'cr'; plugins?: string[]; printWidth?: number; semi?: boolean; singleQuote?: boolean; tabWidth?: number; trailingComma?: 'all' | 'none' | 'es5'; useTabs?: boolean; [key: string]: unknown; } /** * External formatters configuration options */ export interface FormattersOptions { /** * Enable Astro formatting * Requires prettier-plugin-astro */ astro?: boolean; /** * Enable CSS formatting * @default true */ css?: boolean; /** * dprint options for markdown formatting */ dprintOptions?: Record; /** * Enable GraphQL formatting * @default true */ graphql?: boolean; /** * Enable HTML formatting * @default true */ html?: boolean; /** * Enable Markdown formatting * - true: use prettier * - 'prettier': use prettier * - 'dprint': use dprint */ markdown?: boolean | 'prettier' | 'dprint'; /** * Custom Prettier options to override defaults */ prettierOptions?: PrettierOptions; /** * Enable Slidev formatting * Requires prettier-plugin-slidev */ slidev?: boolean | { files?: string[]; }; /** * Enable SVG formatting * Requires @prettier/plugin-xml */ svg?: boolean; /** * Enable XML formatting * Requires @prettier/plugin-xml */ xml?: boolean; } /** * External formatters configuration * Provides formatting for CSS, HTML, XML, SVG, GraphQL, Markdown, Astro and more */ export declare function formatters(options?: FormattersOptions | true, stylistic?: StylisticConfigBase): Promise; //# sourceMappingURL=formatters.d.ts.map