Skip to content

Instantly share code, notes, and snippets.

@xerosanyam
Created October 5, 2017 11:09
Show Gist options
  • Save xerosanyam/76fded740516029fee16ab7d46c3b446 to your computer and use it in GitHub Desktop.
Save xerosanyam/76fded740516029fee16ab7d46c3b446 to your computer and use it in GitHub Desktop.
VSCode settings for Vue
{
"eslint.enable": true,
"eslint.validate": [
{ //list of extensions to validate
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true //Autofix any fixable errors when linting
},
{
"language": "javascript",
"autoFix": true
},
{
"language": "javascriptreact",
"autoFix": true
}
],
"eslint.options": {
"extensions": [ //List of file extensions to activate eslint
".html",
".js",
".vue",
".jsx"
]
},
"eslint.run": "onSave",
"eslint.autoFixOnSave": true
}
@xerosanyam
Copy link
Author

  1. Install vue extension pack with all dependencies
  2. remove vue extension pack only
  3. remove vetur unless you want to enable strict type checking of vue code(was asking to add key in v-for and other errors.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment