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
3.0.4
https://gist.github.com/LinusBorg/e22ecd83a46a101840938dbc18d60bd2
Node 10.8.0, npm 6.4.1
index.vue
vue serve index.vue
Prototype app is served without any errrors or warnings
The app is served correctly, but we get eslint warnings in the console about async being an unexpected token:
async
error: Parsing error: Unexpected token hello at index.vue:10:12: 8 | export default { 9 | methods: { > 10 | async hello() { | ^ 11 | return 'hello' 12 | } 13 | }
The problem is that cli-service-global injects a baseconfig for eslint-loader, and this config doesn't include:
parserOptions: { parser: 'babel-eslint', }
I'll submit a PR for this in a second.
The text was updated successfully, but these errors were encountered:
fix(cli-service-global): fix eslint-loader config (close #2654) (#2655)
2b104b4
By including the parserOptions as we do when we create an actual eslint config for normal projects, we get ESnext support for eslint during `vue serve`
Successfully merging a pull request may close this issue.
Version
3.0.4
Reproduction link
https://gist.github.com/LinusBorg/e22ecd83a46a101840938dbc18d60bd2
Node and OS info
Node 10.8.0, npm 6.4.1
Steps to reproduce
index.vue
filevue serve index.vue
What is expected?
Prototype app is served without any errrors or warnings
What is actually happening?
The app is served correctly, but we get eslint warnings in the console about
async
being an unexpected token:The problem is that cli-service-global injects a baseconfig for eslint-loader, and this config doesn't include:
I'll submit a PR for this in a second.
The text was updated successfully, but these errors were encountered: