eslint-webpack-plugin
Version:
A ESLint plugin for webpack
42 lines (41 loc) • 1.09 kB
TypeScript
export = ESLintWebpackPlugin;
declare class ESLintWebpackPlugin {
/**
* @param {Options} options
*/
constructor(options?: Options);
key: string;
options: import('./options').PluginOptions;
/**
* @param {Compiler} compiler
* @param {Omit<Options, 'resourceQueryExclude'> & {resourceQueryExclude: RegExp[]}} options
* @param {string[]} wanted
* @param {string[]} exclude
*/
run(
compiler: Compiler,
options: Omit<Options, 'resourceQueryExclude'> & {
resourceQueryExclude: RegExp[];
},
wanted: string[],
exclude: string[],
): Promise<void>;
/**
* @param {Compiler} compiler
* @returns {void}
*/
apply(compiler: Compiler): void;
/**
*
* @param {Compiler} compiler
* @returns {string}
*/
getContext(compiler: Compiler): string;
}
declare namespace ESLintWebpackPlugin {
export { Compiler, Module, NormalModule, Options };
}
type Compiler = import('webpack').Compiler;
type Module = import('webpack').Module;
type NormalModule = import('webpack').NormalModule;
type Options = import('./options').Options;