Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitespace after ES7 async keyword for arrow functions #896

Closed
geakstr opened this issue Mar 11, 2016 · 3 comments
Closed

Whitespace after ES7 async keyword for arrow functions #896

geakstr opened this issue Mar 11, 2016 · 3 comments
Milestone

Comments

@geakstr
Copy link

geakstr commented Mar 11, 2016

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;
@paullryan
Copy link

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

@bitwiseman
Copy link
Member

bitwiseman commented Oct 28, 2016

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

@bitwiseman bitwiseman added this to the v1.7.x milestone Jan 1, 2017
@bitwiseman bitwiseman changed the title Whitespace after ES7 async keywork for arrow functions Whitespace after ES7 async keyword for arrow functions Feb 17, 2017
@ghost
Copy link

ghost commented Apr 7, 2017

Any progress?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants