millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

Annotations are not handled correctly #485

Open joekukish opened 7 years ago

joekukish commented 7 years ago

I have the following code

@Directive({ events: [ "click" ]})
export default class Button {
}

And esformatter formats it like this:

@Directive({ events: [ "click"]
    })
export default class Button {
    }

I realized that the class is aligned incorrectly due to Annotation. Is there a way for esformatter to properly handle annotations?