Closed wojciechpolak closed 3 years ago
Seeing the same thing - failures even with explicit failOnError: false
and failOnWarning: false
On the same bote. As a side note, using NextJS, might have something to do with it.
Same issue with Styleguidist
Hi @wojciechpolak Provide a repository to reproduce Sorry for late response
The issues comes down to the webpack mode
parameter, when set to production
it will not generate any output (that is wepback "fails"), but generates output when set to development
. Here's a sample repo with a repo: https://github.com/wictorwilen/eslintplugin-build-fail
Expected Behavior
Show all ESLint errors and warnings, but do not fail the build process. Build should be successful no matter what linting errors are presented.
Actual Behavior
Despite having failOnError set to false, the build is always failing.
Code
Failure:
I'm also trying an alternative config and it doesn't fail, but it also doesn't show any error or warning:
Additionally, setting Webpack's
noEmitOnErrors
to false doesn't affect the build failure:I also must keep
.eslintrc
configuring rules aserror
and notwarn
for IDE reporting.In summary, no matter what config I set, the linting errors are visible and the build is failing (unacceptable) or the build is successful, but nothing about the errors is visible, so at this point the plugin is useless in my case.