Skip to content

Instantly share code, notes, and snippets.

@qwhex
Created February 9, 2021 12:02
Show Gist options
  • Save qwhex/7aedeee7b627fe9144607d5b0b18d18a to your computer and use it in GitHub Desktop.
Save qwhex/7aedeee7b627fe9144607d5b0b18d18a to your computer and use it in GitHub Desktop.
.vscode/settings.json
// Install this extension:
// https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
{
// No default format on save
"editor.formatOnSave": false,
"css.validate": false,
"less.validate": false,
"scss.validate": false,
// Enable per-language
"[javascript]": {
"editor.formatOnSave": true,
},
"[typescript]": {
"editor.formatOnSave": true,
},
"[typescriptreact]": {
"editor.formatOnSave": true,
},
"[json]": {
"editor.formatOnSave": false,
},
"[elm]": {
"editor.formatOnSave": true,
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": false,
"source.fixAll.stylelint": true,
},
"search.exclude": {
"**/node_modules": true,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment