Last active
December 23, 2019 14:07
-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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