Js-beautify: Whitespace after ES7 `async` keyword for arrow functions

Created on 11 Mar 2016  路  3Comments  路  Source: beautify-web/js-beautify

Hello. js-beautify format

const double = async (x) => x * 2;

to

const double = async(x) => x * 2;

It continues to work, but seems like bad behavior.

It formatted correctly

const double = async function(x) { return x * 2; };
const double = async x => x * 2;
bug

Most helpful comment

Any progress?

eslint-config-airbnb is not happy with the lack of space :(

All 3 comments

Given that async/await just made it into node7 it would be great for this to get merged...

@paullryan - if you want to pick up where @afuous left off and work PR #977 to completion that would be greatly appreciated.

Any progress?

eslint-config-airbnb is not happy with the lack of space :(

Was this page helpful?
0 / 5 - 0 ratings