index.d.ts 655 B

123456789101112131415161718192021222324252627
  1. export default ESLintWebpackPlugin;
  2. export type Compiler = import('webpack').Compiler;
  3. export type Options = import('./options').PluginOptions &
  4. import('eslint').ESLint.Options;
  5. declare class ESLintWebpackPlugin {
  6. /**
  7. * @param {Options} options
  8. */
  9. constructor(options?: Options);
  10. key: string;
  11. options: import('./options').PluginOptions;
  12. /**
  13. * @param {Compiler} compiler
  14. */
  15. run(compiler: Compiler): Promise<void>;
  16. /**
  17. * @param {Compiler} compiler
  18. * @returns {void}
  19. */
  20. apply(compiler: Compiler): void;
  21. /**
  22. *
  23. * @param {Compiler} compiler
  24. * @returns {string}
  25. */
  26. getContext(compiler: Compiler): string;
  27. }