Quick FYI - JSHint for CFBuilder

I'm still using Brackets as my primary editor, but as I use CFBuilder more and more I run into things that I think may be helpful to others. Today - it is adding JSHint support. I'm a huge fan of JSHint so I did a quick Google to see if there was an Eclipse plugin for it.

Turns out - there was: jshint-eclipse. Screen shot stolen from the web site:

However, to install this in ColdFusion Builder, you may want to be careful when using the Update functionality. The update URL for CFB is currently broken and will throw an error. It tends to return quite a bit too. When you select the option to install new software, you should click past the initial error and then select "Kepler Repository" in the Work with drop down.

The error you see comes from the fact that the CFB update site wasn't set up properly yet. This is being fixed now. As in - very soon. Maybe even by the time you read this. Anyway, I followed the directions at the install page for jshint-eclipse and grabbed "Eclipse Marketplace", mainly because it looked kinda slick. That worked great.

One more tip though. The plugin will display errors in the Problems panel, and for me, this was showing issues for all my JavaScript files in the project. Man, do I have a lot of problems.

There is a little downward caret on the upper right side of the panel that lets you filter to the current selection, which is not selected text in the current file, but the selected file.

Hope this helps!

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate for Extend by Auth0. He focuses on serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA https://www.raymondcamden.com