Closed kobe990 closed 5 years ago
This is because since the version 5.0.0, eslint-plugin-html
isn't applied on .vue files by default. Please add this in your .eslintrc:
"settings": {
"html/html-extensions": [".html", ".vue"],
}
More importantly, you should use the eslint-plugin-vue
to lint vue files.
Description
I use the version 4 of this plugin, all things are ok. But after I update this plugin to version 5 such as v5.0.3, the lint result is wrong. It can't handle the Vue single file correctly.
Setup configuration
our webpack configuration is like this:
The error message is like this:
module.exports = { root: true, parser: "babel-eslint", parserOptions: {
},
env: { "browser": true, "commonjs": true, "mocha": true, "es6": true },
// required to lint *.vue files plugins: [ "babel", "html" ],
globals: { "__dirname": true, "process": true },
'rules': {
} }