Skip to content

Commit df27bf1

Browse files
chore: update deps (#129)
* chore: update deps * fix: types
1 parent 64c2d66 commit df27bf1

4 files changed

Lines changed: 1853 additions & 1553 deletions

File tree

declarations/getESLint.d.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/** @typedef {import('./options').Options} Options */
44
/** @typedef {() => Promise<void>} AsyncTask */
55
/** @typedef {(files: string|string[]) => Promise<LintResult[]>} LintTask */
6-
/** @typedef {JestWorker & {lintFiles: LintTask}} Worker */
76
/** @typedef {{threads: number, ESLint: ESLint, eslint: ESLint, lintFiles: LintTask, cleanup: AsyncTask}} Linter */
7+
/** @typedef {import('jest-worker').Worker & {lintFiles: LintTask}} Worker */
88
/**
99
* @param {Options} options
1010
* @returns {Linter}
@@ -35,14 +35,13 @@ export type LintResult = import('eslint').ESLint.LintResult;
3535
export type Options = import('./options').Options;
3636
export type AsyncTask = () => Promise<void>;
3737
export type LintTask = (files: string | string[]) => Promise<LintResult[]>;
38-
export type Worker = JestWorker & {
39-
lintFiles: LintTask;
40-
};
4138
export type Linter = {
4239
threads: number;
4340
ESLint: ESLint;
4441
eslint: ESLint;
4542
lintFiles: LintTask;
4643
cleanup: AsyncTask;
4744
};
48-
import { Worker as JestWorker } from 'jest-worker';
45+
export type Worker = import('jest-worker').Worker & {
46+
lintFiles: LintTask;
47+
};

0 commit comments

Comments
 (0)