JSHint swindent(?)

Mar 5, 2013 at 7: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 7: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 18, 2013 at 12:08 AM
Recommend you use web essentials instead. It has a more up to date version of JSHint.

http://vswebessentials.com/features/javascript