UNPKG

prettier-eslint

Version:

Formats your JavaScript using prettier followed by eslint --fix

17 lines (16 loc) 1.07 kB
import type { ESLint } from 'eslint'; import { type Options as PrettierOptions } from 'prettier'; import type { ESLintOptions, ESLintConfig } from './types.ts'; export declare const logger: import("loglevel").Logger; export declare function isDebugEnabled(): boolean; export declare function isTraceEnabled(): boolean; export declare function mergeConfigs<T extends object>(...configs: Array<T | null | undefined>): T; export declare function getModulePath(filePath: string | undefined, moduleName: string): string; export declare function getOptionsForFormatting(eslintConfig: ESLintConfig, prettierOptions?: PrettierOptions, fallbackPrettierOptions?: PrettierOptions): { eslint: ESLintConfig; prettier: PrettierOptions; }; export declare function loadModule<T>(modulePath: string): Promise<T>; export declare function importModule<T>(modulePath: string, name?: string): Promise<T>; export declare function getESLint(eslintPath: string, eslintOptions: ESLintOptions): Promise<ESLint>; export declare const extractFileExtensions: (patterns: string[]) => string[];