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 committed May 3, 2024
1 parent 6ce70cf commit c437cb5
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 @@ -112,7 +112,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 c437cb5

Please sign in to comment.