Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upComplex Async Arrow Throws Parser Error #1028
Comments
This comment has been minimized.
This comment has been minimized.
|
I sincerely apologize. I swear I was on the |
Swivelgames
closed this
Dec 13, 2017
lock
bot
locked as resolved and limited conversation to collaborators
May 25, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Swivelgames commentedDec 13, 2017
Specifically, the errors that are thrown are via the
importmodule; rulesno-named-as-defaultandno-named-as-default-memberintroduceParseerrors when attempting to validate.Unfortunately this is entirely valid syntax. I'm not quite sure why this isn't working.
After further investigation, it seems as though the eslint's parser is interpreting
async ( //...as a function call, not as a function declaration modifier construct; it's as if it's favoring the following code (which is entirely invalid):