UNPKG

prettier-eslint

Version:

Formats your JavaScript using prettier followed by eslint --fix

13 lines (12 loc) 482 B
import type { Linter } from 'eslint'; import type { FormatOptions } from './types.ts'; export declare function format(options: FormatOptions): Promise<string>; export declare const DEFAULT_ESLINT_EXTENSIONS: string[]; export declare const DEFAULT_ESLINT_FILES: string[]; export declare function analyze(options: FormatOptions): Promise<{ output: string; messages: Linter.LintMessage[]; }>; export type * from './types.js'; export * from './utils.ts'; export default format;