millermedeiros / esformatter

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

ParameterComma logic doesn't work well with flow types #458

Closed millermedeiros closed 8 years ago

millermedeiros commented 8 years ago

Input and current output:

function flow(one: OneType<string>, two: TwoTypes<string, string>    ,    three: string) {
}

Expected:

function flow(one: OneType<string>, two: TwoTypes<string, string>, three: string) {
}

see: https://github.com/millermedeiros/esformatter-flow/issues/2