Skip to content

Commit

Permalink
chore: update deps (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza authored Jun 15, 2021
1 parent 9523f0c commit da5a14f
Show file tree
Hide file tree
Showing 5 changed files with 3,297 additions and 4,529 deletions.
25 changes: 1 addition & 24 deletions declarations/getStylelint.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
/** @typedef {import('stylelint')} Stylelint */
/** @typedef {import('stylelint').LintResult} LintResult */
/** @typedef {import('./options').Options} Options */
/** @typedef {() => Promise<void>} AsyncTask */
/** @typedef {(files: string|string[]) => Promise<LintResult[]>} LintTask */
/** @typedef {JestWorker & {lintFiles: LintTask}} Worker */
/** @typedef {{stylelint: Stylelint, lintFiles: LintTask, cleanup: AsyncTask, threads: number, }} Linter */
/**
* @param {Options} options
* @returns {Linter}
*/
export function loadStylelint(options: Options): Linter;
/**
* @param {string|undefined} key
* @param {number} poolSize
* @param {Options} options
* @returns {Linter}
*/
export function loadStylelintThreaded(
key: string | undefined,
poolSize: number,
options: Options
): Linter;
/**
* @param {string|undefined} key
* @param {Options} options
Expand All @@ -44,4 +21,4 @@ export type Linter = {
cleanup: AsyncTask;
threads: number;
};
import JestWorker from 'jest-worker';
import { Worker as JestWorker } from 'jest-worker';
3 changes: 2 additions & 1 deletion declarations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ declare class StylelintWebpackPlugin {
*/
getContext(compiler: Compiler): string;
/**
* @param {string[]} glob
* @param {Compiler} compiler
* @param {Module} module
* @returns {string[]}
*/
getFiles({ fileTimestamps }: Compiler, { buildInfo }: Module): string[];
getFiles(glob: string[], compiler: Compiler, module: Module): string[];
/**
* @param {Map<string, null | FileSystemInfoEntry | "ignore">} fileTimestamps
* @returns {string[]}
Expand Down
Loading

0 comments on commit da5a14f

Please sign in to comment.