millermedeiros / esformatter

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

Don't insert newline into noop ArrowFunctionExpression #487

Closed langdonx closed 7 years ago

langdonx commented 7 years ago

Input:

const f1 = () => {};
const f2 = function() {};

Output:

const f1 = () => {
};
const f2 = function() {};

I have a PR for this incoming.

millermedeiros commented 7 years ago

merged 29045f0