Vetur: The right way to setup vscode vetur eslint prettier

Created on 14 Feb 2019  路  14Comments  路  Source: vuejs/vetur

  • [ yes] I have searched through existing issues
  • [ yes] I have read through docs
  • [ yes] I have read FAQ

Info

  • Platform:
  • Vetur version: 0.15.1
  • VS Code version: 1.31.1

Problem

I have read the doc and use alot of time to search the answer but still can not find the RIGHT WAY to setup the vscode vetur eslint and prettier.

I tried follow the vetur doc to setup...

Test A: use vetur bundles prettier prettier-eslint and eslint-plugin-vue.

{
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "vue", "autoFix": true }
],
"prettier.eslintIntegration": true,
}

"extends": [
"eslint:recommended",
"plugin:vue/essential" // do i still need this line if i have vetur and i no need configure linting rules?
],

npm install -D eslint eslint-plugin-vue

The doc said "Vetur bundles a version of eslint-plugin-vue for linting