index.d.ts 779 B

12345678910111213141516171819202122232425262728293031323334
  1. export default ESLintWebpackPlugin;
  2. export type Compiler = import('webpack').Compiler;
  3. export type Options = import('./options').Options;
  4. declare class ESLintWebpackPlugin {
  5. /**
  6. * @param {Options} options
  7. */
  8. constructor(options?: Options);
  9. key: string;
  10. options: import('./options').PluginOptions;
  11. /**
  12. * @param {Compiler} compiler
  13. * @param {Options} options
  14. * @param {string[]} wanted
  15. * @param {string[]} exclude
  16. */
  17. run(
  18. compiler: Compiler,
  19. options: Options,
  20. wanted: string[],
  21. exclude: string[]
  22. ): Promise<void>;
  23. /**
  24. * @param {Compiler} compiler
  25. * @returns {void}
  26. */
  27. apply(compiler: Compiler): void;
  28. /**
  29. *
  30. * @param {Compiler} compiler
  31. * @returns {string}
  32. */
  33. getContext(compiler: Compiler): string;
  34. }