Skip to content

Commit

Permalink
fix(failOnError) show eslint errors when failOnError is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
GertSallaerts committed Feb 16, 2021
1 parent 4930a6f commit 603ea35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ class ESLintWebpackPlugin {
if (errors && options.failOnError) {
// @ts-ignore
compilation.errors.push(errors);
} else if (errors && !options.failOnError) {
// @ts-ignore
compilation.warnings.push(errors);
}

if (generateReportAsset) {
Expand Down

0 comments on commit 603ea35

Please sign in to comment.