Skip to content

Instantly share code, notes, and snippets.

@Alexisvt
Last active December 23, 2019 14:07
Show Gist options
  • Save Alexisvt/712aed3cb0e46cf681a0c672472d7b2c to your computer and use it in GitHub Desktop.
Save Alexisvt/712aed3cb0e46cf681a0c672472d7b2c to your computer and use it in GitHub Desktop.
Another VSCode configuration to work with Vue.js or Nuxt.js. If you want to see the original file go to this post: https://alligator.io/vuejs/eslint-vue-vetur/
{
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatter.html": "prettier",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// put all of these as false if you didn't start the project
"editor.formatOnSave": true,
"typescriptHero.imports.insertSemicolons": false,
"typescriptHero.imports.organizeOnSave": true,
"editor.formatOnPaste": true,
// end
"eslint.validate": ["vue", "javascriptreact", "javascript"],
"[javascriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment