Last active
April 27, 2021 09:16
-
-
Save bagaskarala/4c9b9a4b639aed7782e25413698df422 to your computer and use it in GitHub Desktop.
vue javascript vscode settings
This file contains 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
// place it on your workspace .vscode folder | |
{ | |
// EDITOR | |
// ---------------------------------------- | |
"editor.defaultFormatter": "dbaeumer.vscode-eslint", | |
"[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, | |
"[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, | |
"[vue]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, | |
"[scss]": { "editor.defaultFormatter": "stylelint.vscode-stylelint" }, | |
"[css]": { "editor.defaultFormatter": "stylelint.vscode-stylelint" }, | |
"editor.codeActionsOnSave": { | |
// https://github.com/microsoft/vscode-eslint/blob/master/README.md#release-notes | |
"source.fixAll.eslint": true, | |
"source.fixAll.stylelint": true | |
}, | |
// ESLINT | |
// ---------------------------------------- | |
"eslint.enable": true, | |
"eslint.alwaysShowStatus": true, | |
"eslint.options": { | |
"extensions": [".html", ".js", ".ts", ".vue"] | |
}, | |
// VETUR | |
// Disable rules if user has extension installed and enabled. | |
// ---------------------------------------- | |
"vetur.validation.template": false, | |
"vetur.validation.style": false, | |
"vetur.format.defaultFormatter.html": "none", | |
"vetur.format.defaultFormatter.css": "none", | |
"vetur.format.defaultFormatter.scss": "none", | |
"vetur.format.defaultFormatter.js": "none", | |
"vetur.format.defaultFormatter.ts": "none", | |
// STYLELINT | |
// ---------------------------------------- | |
"stylelint.enable": true, | |
"css.validate": true, | |
"scss.validate": true, | |
// HTML | |
// ---------------------------------------- | |
"html.format.enable": false, | |
"emmet.triggerExpansionOnTab": true, | |
"emmet.includeLanguages": { | |
"vue-html": "html" | |
}, | |
// FILES | |
// ---------------------------------------- | |
"files.exclude": { | |
"**/*.log": true, | |
"**/*.log*": true, | |
"**/dist": true, | |
}, | |
"files.associations": { | |
".babelrc": "jsonc", | |
".eslintrc": "jsonc", | |
".markdownlintrc": "jsonc", | |
"*.config.js": "javascript", | |
"*.spec.js": "javascript", | |
"*.vue": "vue" | |
}, | |
// The default end of line character. Use \n for LF and \r\n for CRLF. | |
"files.eol": "\n", | |
"files.insertFinalNewline": true, | |
"files.trimFinalNewlines": true, | |
"files.trimTrailingWhitespace": true, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment