Code52/saywat — pull request #2 by csainty (2012-04-03 00:04:13+00:00)
Title: Jshint

Here is some code to add the ability to quickly jshint the codebase. Just run the hint.cmd and it will output any errors, you can add excluded folders / files to the hint.js file.

As I said in the chatroom, I find it very useful on two counts.

1. Finds silly bugs like mistyped variables (by letting you know the variable is undefined)

2. Standardises common coding practices like indent type, bracket usage, semi colon usage. Makes everyone work on the same page instead of ending up with messy format changing commits because someone prefers tabs.

Downside is that it can be annoying to have to keep tidying up your code as you go, but you are going to have to do it eventually.

Current settings are my own, change as required to keep everyone happy.