Closed nschonni closed 11 years ago
I don’t “mix tabs and spaces” — I use tabs for indentation and spaces for presentational indentation. That way, the source code looks like I intended it to, regardless of editor settings.
Since the var goes from line 5 to 47, I think it is seeing that as one "line" so even turning on SmartTabs still causes it to give the warning. Strict was mostly about style, but those comparisons don't need type coercion. JSHint is more about style than function, but most of the rules can be all opted out selectively using a /* jshint */ directive at the top.
Closing since it has been 3 months and no response