Skip to content

Commit b52d1e7

Browse files
fix: use stillValidModule only lintDirtyModulesOnly is disabled (#253)
1 parent d25e94c commit b52d1e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ class ESLintWebpackPlugin {
116116

117117
// Add the file to be linted
118118
compilation.hooks.succeedModule.tap(this.key, addFile);
119-
compilation.hooks.stillValidModule.tap(this.key, addFile);
119+
120+
if (!this.options.lintDirtyModulesOnly) {
121+
compilation.hooks.stillValidModule.tap(this.key, addFile);
122+
}
120123

121124
/**
122125
* @param {Module} module

0 commit comments

Comments
 (0)