Skip to content

Commit

Permalink
fix: use stillValidModule only lintDirtyModulesOnly is disabled (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza authored May 7, 2024
1 parent d25e94c commit b52d1e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ class ESLintWebpackPlugin {

// Add the file to be linted
compilation.hooks.succeedModule.tap(this.key, addFile);
compilation.hooks.stillValidModule.tap(this.key, addFile);

if (!this.options.lintDirtyModulesOnly) {
compilation.hooks.stillValidModule.tap(this.key, addFile);
}

/**
* @param {Module} module
Expand Down

0 comments on commit b52d1e7

Please sign in to comment.