-
-
Notifications
You must be signed in to change notification settings - Fork 121
eslint-loader with WebPack 2.2 #148
Comments
@jeffrey-l-turner Top level configuration isn't supported anymore. Something known as LoaderOptionsPlugin replaced it. |
Alternatively, this loader accepts parameters in each loader config. |
ok for everyone else's edification per #457 as a temporary fix, above, here's what I did and it works:
|
Unfortunately I wasn't able to get this to work even with the above workaround. |
You don't need a workaround. Just pass option directly with the loader. I will try to update the doc accordingly. |
Do you mean something like this?
I'm trying this but eslint loader still causes npm to return an error code. I'm using eslint-loader 1.6.1 with webpack 2.2.1. |
Neither of provided solution worked for me with webpack 2. |
@maciej-gurban the same issue |
I've tracked down the issue to the fact that, in webpack 2, any use of The workaround is to set any lints which are not critical to Also to note, the actual build still finishes and produces output. This only affects wrappers that would call webpack, such as |
I am unable to get the failOnWarning and failOnError properties to work with WebPack 2.2. The newer version of WebPack does not recognize 'eslint' or 'eslint-loader' as a top level property on the webpack.config.js file. I've also tried using those properties in the enforce: 'pre' section of the rules. Is there a new way to specify this with the new version of WebPack. Thanks.
The text was updated successfully, but these errors were encountered: