-
-
Notifications
You must be signed in to change notification settings - Fork 679
Conflict with the eslint-plugin-html #91
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 the report.
Please configure {
"plugins": [ "html" ],
"settings": {
"html/html-extensions": [".html"], // don't include .vue
}
}
|
@mysticatea Adding the settings as you mention still doesn't fix the problem. Vue files seem to not be getting the linting as the .js files are. Here is a basic Hello example: https://github.com/prograhammer/hello I'm using VS Code. If you BTW, this is my VS Code settings.json:
|
You have to add configuration for Sent from my Xiaomi Redmi 4A using FastHub |
@armano2 What do you mean? I've installed the vetur extension for Vue if that's what you mean. |
Ok, solved! I updated my settings.json (file > preferences > settings) to look like this:
Works beautifully! |
I faced a similar issue. The I am guessing many people new to the ecosystem would use that template and may come across the issue. A small section in the README may be worthwhile. |
Encountered this problem and found that placing
|
After adding the plugin to extends, as below, eslint has no effect on the js in the vue single file component.
不算bug吧? remove
html
插件就好了。The text was updated successfully, but these errors were encountered: