jslintmate
jslintmate copied to clipboard
JSHint doesn't seem to recognize the smarttabs flag
In my JS files that are under heavy development, I get a lot of alerts for "Mixed Spaces and Tabs" because I have a lot of code commented out but because JSHint sees so many of those, I lose the benefit of it flagging other actual syntax errors. I tried adding /*jshint smarttabs:true/false */
(I've tried both settings) to the top of the file, but the errors still show up. Either I'm using the wrong flag or it's being ignored.
Thanks for reporting this, Matt. I'm having trouble reproducing the issue; could you please provide a small example?
Cheers, Ron
/*jshint smarttabs:true */
// var
// foo = 'bar',
// baz = 'blarg'
// ;
and
/*jshint smarttabs:false */
// var
// foo = 'bar',
// baz = 'blarg'
// ;
Also seeing this.
+1