UNPKG

gulp-eslint-new

Version:

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

28 lines (19 loc) 721 B
import type { ESLint, Linter } from 'eslint'; type ESLintrcOptions = ESLint.LegacyOptions; type FlatESLintOptions = ESLint.Options; // In @types/eslint `ESLint.LintResultData` lacks the `maxWarningsExceeded` property. 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; }; }