artasparks / glift

Go Lightweight Frontend
MIT License
115 stars 33 forks source link

Allow trailing commas in javascript #137

Closed pconerly closed 8 years ago

pconerly commented 8 years ago

Is there a setting in closure to allow trailing commas? I don't think you're trying to support IE8 anyway, and trailing commas are the bomb. Airbnb's style guide on trailing commas.

If we're worried about compatibility, we could also think about compiling this project with webpack instead of closure. That could be a benefit in it's own right--- having java & python as project dependencies is a little silly and webpack is great tool.

artasparks commented 8 years ago

Definitely. Just have to find the right flag for the closure compiler.