jslintmate icon indicating copy to clipboard operation
jslintmate copied to clipboard

JSHint doesn't seem to recognize the smarttabs flag

Open webbower opened this issue 12 years ago • 4 comments

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.

webbower avatar May 18 '12 17:05 webbower

Thanks for reporting this, Matt. I'm having trouble reproducing the issue; could you please provide a small example?

Cheers, Ron

rondevera avatar May 22 '12 06:05 rondevera

/*jshint smarttabs:true */

// var
//  foo = 'bar',
//  baz = 'blarg'
// ;

and


/*jshint smarttabs:false */

// var
//  foo = 'bar',
//  baz = 'blarg'
// ;

webbower avatar May 22 '12 17:05 webbower

Also seeing this.

pdenya avatar Jul 30 '12 18:07 pdenya

+1

gartz avatar Mar 22 '13 12:03 gartz