- Look great: Beautification/Code Formatting
- Consistent: Linting tools: JSLint/JSHint.
Get to the point
- Linter: JSLint - Warning: JSLint will hurt your feelings.
- Integration: Works with multpile configurations, integrated into my Editor, and pre-commit check.
There is one feature I absolutely count on when developping: Code Formatting. This is the critical feature on which I choose my editor. It is why I loved Netbeans, which I since abandoned because it feels too heavy. Now I have moved on to Textmate, but I have a nagging feeling that the platform lock-in may yet bring me to Sublime Text 2 soon. (I have failed at Vim too many times to count...).
The easy part is accepting that any set of enforced quality policies is better that NONE. The harder part is to refine the configuration choices to maximize quality and safety while preserving enough flexibility and convinience.
The crux of the choices to make here depend on the workflow requirements.
Ideal Conditions: * No restriction on platform or Editor. * Adapts to different set of style/coding practices (different projects) * Formatting is integrted into Editor(s), at least on each platform. * Linting is performed as you type, and can be checked en masse at checkin (git pre-commit hook).
Now for configuration, and integration...