Skip to content

Commit 603ea35

Browse files
committed
fix(failOnError) show eslint errors when failOnError is disabled
1 parent 4930a6f commit 603ea35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ class ESLintWebpackPlugin {
145145
if (errors && options.failOnError) {
146146
// @ts-ignore
147147
compilation.errors.push(errors);
148+
} else if (errors && !options.failOnError) {
149+
// @ts-ignore
150+
compilation.warnings.push(errors);
148151
}
149152

150153
if (generateReportAsset) {

0 commit comments

Comments
 (0)