closure-linter icon indicating copy to clipboard operation
closure-linter copied to clipboard

Feature Request: Treat "let" as "var".

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

I've been trying out the Closure Linter on some of my Rhino code, and 
it works pretty well except for the fact that it doesn't realize that 
"let" has the same syntax as "var", meaning it won't let me do 
something like: 

let variable1, 
    variable2, 
    variable 3; 

It complains about incorrect indentation.  I know the Closure tools 
are designed specifically for ES3/ECMA 262, but would treating 'let' 
as 'var' be a problem?  It'd be awesome to be able to use the tool on 
my console and server-side stuff as well. 

Thanks!

Original issue reported on code.google.com by [email protected] on 17 Dec 2010 at 11:02

GoogleCodeExporter avatar Jun 17 '15 06:06 GoogleCodeExporter

Original comment by [email protected] on 5 Aug 2013 at 9:50

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

GoogleCodeExporter avatar Jun 17 '15 06:06 GoogleCodeExporter