google / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
109 stars 37 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 JayDevFo...@gmail.com on 17 Dec 2010 at 11:02

GoogleCodeExporter commented 9 years ago

Original comment by vagra...@google.com on 5 Aug 2013 at 9:50