-
Notifications
You must be signed in to change notification settings - Fork 37
jshint-loader not working with webpack 4 #50
Comments
Even with a .jshintrc populated and in the root of the project the node_module jshint index,js file has the this.options coming in as undefined. Boom exception. Have tried adding the option to the web.congig.js loader still same issue. I use the Rules: I added a console.log to the index.js file in jshint: |
Hey guys, this link talks about how |
Ugh, I fucking hate javascript. |
I created a PR, #51 which closes this shit. |
If any of you guys need the fix for this before they merge the PR, you can use https://github.com/arizvisa/jshint-loader#webpack-4 in your packages for npm. |
We're working on getting this repo up to date. Hang tight. @arizvisa dial back the language please. |
did anyone find a solution for this? I am having the exact same issue with |
@AtanuMandal #53 and #51 address this. please take a look at Pull Requests next time around before dropping a followup comment |
…-guide-for-plugins-loaders-20a79b927202 states that webpack4 has deprecated this.options in favor of this.query. Closes issue webpack-contrib#50.
Current fix is risking, it will break old webpack 3 if user choose use options in webpack config. a better fix just simply do this.
|
@russelyang (or anybody), mind creating a PR? My PR at #51 seems to have gone stale due to issues with the cla signature. |
Still not working :/ |
@ybaruchel, you can use https://github.com/arizvisa/jshint-loader#webpack-4 in your packages for npm to get it working. |
actually, once PR #55 is merged, my fix can be re-opened and rebased on top of it. The reason my PR wasn't merged is that despite my PR being a single-line fix, I was "given the honor" (#51 (comment)) of having to update the versions of the other packages which also included refactoring a bunch of other code that was completely unrelated to my initial fix. this required a lot more more work than i was willing to put in. so, rather than committing more time to refactor the other unrelated parts in jshint-loader to accommodate the new package versions and pass these tests, I chose to close the PR instead as I can just use my forked repo with the webpack-4 fixes. but since it looks like the author of PR #55 actually went through the required refactoring that I didn't care to. I should be able to just rebase my fix on top of it and then things should be good to go once it gets merged. |
In webpack 4 in the presence of packages jslint and jshint-loader error on the similarity of such:
Example of rule:
The text was updated successfully, but these errors were encountered: