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

Support ES8 (ES 2017), in addition to ES7 (ES 2016) #645

Closed
jescalan opened this issue Sep 29, 2016 · 3 comments

Comments

@jescalan
Copy link

commented Sep 29, 2016

With the latest version of standard, this code produces an error, but is perfectly valid es6:

async () => { console.log('hello') }

Maybe I'm doing something wrong here? I'd think someone else would have noticed this before...

@jescalan jescalan changed the title Await arrow function still not working? Async arrow function still not working? Sep 29, 2016

@feross

This comment has been minimized.

Copy link
Member

commented Sep 29, 2016

We support ES7 at the moment, but async actually is part of the ES8 spec.

(ESLint supports ES8, so we can try updating to that again. I only updated us to ES7 earlier this week since in ES8 mode, I ran into a parse bug that treated async as a reserved word which broke valid uses like cb({ async: true }). That was just fixed in espree, though.

I'll give this another shot.

@feross feross changed the title Async arrow function still not working? Support ES8 (ES 2017), in addition to ES7 (ES 2016) Sep 29, 2016

feross added a commit to standard/eslint-config-standard that referenced this issue Sep 29, 2016

feross added a commit to standard/eslint-config-standard-jsx that referenced this issue Sep 29, 2016

feross added a commit to standard/eslint-config-standard-react that referenced this issue Sep 29, 2016

@feross feross referenced this issue Sep 29, 2016
@feross

This comment has been minimized.

Copy link
Member

commented Sep 29, 2016

Okay, new version of standard just released that support ES8, including async and await. Enjoy!

8.3.0.

@feross

This comment has been minimized.

Copy link
Member

commented Sep 29, 2016

@feross feross added enhancement and removed enhancement labels May 10, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.