UNPKG

gulp-eslint-new

Version:

A gulp plugin to lint code with ESLint 8 and 9.

27 lines (18 loc) 635 B
import type { ESLint, Linter } from 'eslint'; type ESLintrcOptions = ESLint.LegacyOptions; type FlatESLintOptions = ESLint.Options; type FormatterContext = ESLint.LintResultData & ResultsMeta; type FormatterFunction = (results: ESLint.LintResult[], context?: FormatterContext) => string | Promise<string>; type LintMessage = Linter.LintMessage; type LintResult = ESLint.LintResult; interface LoadedFormatter { format(results: ESLint.LintResult[], resultsMeta: ResultsMeta): string | Promise<string>; } interface ResultsMeta { maxWarningsExceeded?: { foundWarnings: number; maxWarnings: number; }; }