JSHint swindent(?)

Mar 5, 2013 at 6:37 PM
Is there support for the JSHint option for switch case indenting ("swindent")?

https://github.com/jshint/jshint/pull/600
switch (me.options.type()) {
    case me.Types.radio:
        result = me.Types.radio;
        break;
    case me.Types.checkbox:
        result = me.Types.checkbox;
        break;
    case me.Types.button:
        result = me.Types.button;
        break;
}
Aug 16, 2013 at 6:23 PM
I second that such support would be useful especially since Visual Studio obviously doesn't target switch statements specfically, therefore, it will indent these statements contrary to JSLint/Hint expectations.
Developer
Aug 17, 2013 at 11:08 PM
Recommend you use web essentials instead. It has a more up to date version of JSHint.

http://vswebessentials.com/features/javascript