-
-
Notifications
You must be signed in to change notification settings - Fork 681
Message: Use the latest vue-eslint-parser #30
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
Comments
Thank you for this issue. I guess you have failed to install. Could you try re-install ( |
Plus you don't have to install |
I have a related issue.
And I get:
|
Have the same issue with CLI and also in Atom. Latest version ( |
I have the same problem on v3.1.0, happens on my |
Hey @JasinYip, |
I still have this issue on v3.1.3 |
@msolovyov @lincenying I suspect it's installation problem. Could you try the following steps?
|
The reason is |
@lincenying Ah, I see. Thank you for your investigation. Yes, this plugin requires the custom parser The workaround is here: https://github.com/mysticatea/vue-eslint-parser#-options
|
@mysticatea I think we should add this information to Readme. Or at least point to this link with information clear information that user should not set |
Works! Thanks @mysticatea |
I'm using VSCode and followed everything that was advised, but I still got stuck with |
Who has issues with configuring, try this starter config:
|
Thanks,it works |
thks, i did it and be fine. |
For me , I write an Egg server in a project which is created by Vue-cli . I user typescript to write this project. And in the server code , I take the same error
Maybe the eslint extends config in server folder and the outside are in conflict? |
…npm_and_yarn/javascript-package/eslint-8.13.0 Bump eslint from 8.11.0 to 8.13.0 in /javascript-package
Tried to use the eslint-plugin-vue@beta, but i'm getting the following error: Use the latest vue-eslint-parser.
Here's my .eslintrc.js:
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
sourceType: 'module',
parser: 'babel-eslint',
sourceType: 'module',
allowImportExportEverywhere: false
},
env: {
browser: true,
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: ['eslint:recommended',
'plugin:vue/recommended'],
// required to lint *.vue files
plugins: [
],
'settings': {
},
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'camelcase': 2,
'vue/no-invalid-template-root':2
}
}
I installed the parser, and upgraded eslint to 4.0, but i'm still getting the error, both in vs code, and at compile time.
.
The text was updated successfully, but these errors were encountered: