12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- export function loadESLint(options: Options): Linter;
- export function loadESLintThreaded(
- key: string | undefined,
- poolSize: number,
- options: Options
- ): Linter;
- export default function getESLint(
- key: string | undefined,
- { threads, ...options }: Options
- ): Linter;
- export type ESLint = import('eslint').ESLint;
- export type LintResult = import('eslint').ESLint.LintResult;
- export type Options = import('./options').PluginOptions &
- import('eslint').ESLint.Options;
- export type AsyncTask = () => Promise<void>;
- export type LintTask = (files: string | string[]) => Promise<LintResult[]>;
- export type Worker = JestWorker & {
- lintFiles: LintTask;
- };
- export type Linter = {
- threads: number;
- ESLint: ESLint;
- eslint: ESLint;
- lintFiles: LintTask;
- cleanup: AsyncTask;
- };
- import JestWorker from 'jest-worker';
|