UNPKG

396 BTypeScriptView Raw
1import * as eslinttypes from 'eslint';
2import { NormalizedMessage } from './NormalizedMessage';
3export declare function createEslinter(eslintOptions: object): {
4 getLints: (filepath: string) => eslinttypes.CLIEngine.LintReport | undefined;
5 getFormattedLints: (lintReports: IterableIterator<eslinttypes.CLIEngine.LintReport> | eslinttypes.CLIEngine.LintReport[]) => NormalizedMessage[];
6};