Skip to content

Instantly share code, notes, and snippets.

@coltborg
Created December 31, 2018 15:31
Show Gist options
  • Save coltborg/b42bc3a45a9dcd43e9a0712660a6350d to your computer and use it in GitHub Desktop.
Save coltborg/b42bc3a45a9dcd43e9a0712660a6350d to your computer and use it in GitHub Desktop.
ESLint format on save for Vue.js using Visual Studio Code.
{
"eslint.enable": true,
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false,
},
"[vue]": {
"editor.formatOnSave": false,
},
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"eslint.validate": [
{
"language": "javascript",
"autoFix": true
},
{
"language": "javascriptreact",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
],
"path-autocomplete.pathMappings": {
"~": "${folder}/src",
"@": "${folder}/src",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment