TryGhost/Ghost — pull request #4001 by hswolff (2014-09-10 04:10:16+00:00)
Title: WIP: Add jscs task to grunt file and clean up files to adhere to jscs rules

This is a WIP.

This adds [JSCS](https://github.com/jscs-dev/node-jscs/tree/v1.6.1) to Ghost so that we can automate incoming code so that it adheres to our common style.

For the time being I created a best guess of what we'd want our rules to be in the `.jscsrc` file. Please review that file to see if those rules agree with you. I used the [Crockford preset](https://github.com/jscs-dev/node-jscs/blob/v1.6.1/presets/crockford.json) as the base upon which I built the file as I know @ErisDS is a fan of that style of code and we already mostly adhere to it.

I have some additional rules included that I've commented out for now so that they can be put to more discussion before I take the time to go through and update our code to reflect that rule. I'd like for all commented out rules to be included however I hope we can reach consensus on what is ultimately included. [Consult the docs](https://github.com/jscs-dev/node-jscs/tree/v1.6.1) for examples on what each rule means.