I write most of my JavaScript code with an indentation of 2 spaces. I'm using http://www.jslint.com for quality control. In the new version anything else but 4 space indentation is considered wrong?
In the old version http://old.jslint.com there was a indent box where the number of whitespace could be set or an directive: /*jslint indent: 2 */ could placed at the top of the script.
I would like to avoid "messy white space" and keep a 2 space indentation.
Please advise :)
Some suggestions:
/*jslint white:true */
which allows any amount of indentation (however, it also ignores extraneous spaces and tabs anywhere so the following won't produce any warningfunction anony () {
)