So I just installed JSHint in Eclipse Kepler I loaded my .jshintrc file .
How do I run jshint on my javascript files? I do not see a menu item nor a place to specify filenames, etc...
Can someone help?
To enable checks in Eclipse go to Window –> Preferences –> JSHint –> Configuration and import the . jshintrc file in your project root. Now right click on your project in the project explorer, choose properties –> JSHint and enable checks for all files you like.
JSHint Eclipse is available in the Eclipse Marketplace. The easiest way to install it is to drag the icon on the start page into your Eclipse. You can also open the marketplace dialog in Eclipse (Help > Eclipse Marketplace…) and search for “jshint”.
After adding a .jshintrc
file to the root of the project you need to:
Right-click on your project in the Project Explorer view -> properties -> JSHint -> Configuration -> Check enable.
Also select the folders containing your js files (use slashes in the path).
I split my js files into two folders custom
and external
and only check on custom (and all subfolders of custom).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With