I was able to set up ESLint working with Encore (Symfony). My .eslintrc.js
file has the following configuration:
module.exports = {
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "babel-eslint",
"ecmaFeatures": {
"legacyDecorators": true
},
"ecmaVersion": 5,
},
"extends": [
"plugin:vue/base",
"airbnb-base"
],
"rules": {
"vue/html-indent": [2, 4],
...
},
"env": {
browser: true,
es6: true,
node: true
},
"plugins": [
"vue",
]
};
and whenever I watch the files I get the following error 1:1 error Use the latest vue-eslint-parser. See also https://vuejs.github.io/eslint-plugin-vue/user-guide/#what-is-the-use-the-latest-vue-eslint-parser-error vue/html-indent
.
I have tried the solutions in the following links:
- https://github.com/vuejs/eslint-plugin-vue/issues/30
- https://github.com/vuejs/eslint-plugin-vue/issues/325
- Encore, Vue, Eslint - Use the latest vue-eslint-parser
Any suggestion would be highly appreciated. Thank you