millermedeiros / esformatter

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

FunctionDeclaration opening, closing configuration ignored for object values #504

Closed mcandre closed 4 years ago

mcandre commented 4 years ago

When anonymous functions are placed as values in object key/value pairs, then esformatter rule ignores any settings for before, after line breaks on FunctionDeclaration opening / closing braces like `">=0", and insists on introducing line breaks anyway.

mcandre commented 4 years ago

I see, FunctionExpression{Opening,Closing}Brace is the rule that I need to customize for this.