-
Notifications
You must be signed in to change notification settings - Fork 0
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 Async Functions in eslint #2
Comments
I try to use the same config
But the same error still coming out. And what I end up is creating a class to wrap the asycn functions, which works fine
|
You can fix it using the latest version of ESLint and set parser options like this: {
"parserOptions": {
"ecmaVersion": 8
}
} |
For comparison, I tried just doing the command line but this seems to be a vim issue maybe? Not sure where the disconnect is. I'm using w0rp/ale right now. |
Hi, I updated the package with support for es2018. Let me know if that solves your problem. |
Eslint parser does not support async functions, eslint/eslint#8366
Basically we need to add to the .eslintrc
The text was updated successfully, but these errors were encountered: