Skip to content

Instantly share code, notes, and snippets.

@userhooke
Created August 4, 2019 18:24
Show Gist options
  • Save userhooke/d2807945860f1c56a0b8718f0605a03e to your computer and use it in GitHub Desktop.
Save userhooke/d2807945860f1c56a0b8718f0605a03e to your computer and use it in GitHub Desktop.
{
"editor.fontSize": 14,
"editor.tabSize": 2,
"editor.fontFamily": "Hasklig, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"workbench.startupEditor": "newUntitledFile",
"editor.minimap.enabled": false,
"eslint.packageManager": "npm",
"eslint.alwaysShowStatus": true,
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/node_modules": true
},
"explorer.confirmDelete": false,
// These are all my auto-save configs
"editor.formatOnSave": true,
// turn it off for JS, we will do this via eslint
"[javascript]": {
"editor.formatOnSave": false
},
// tell the ESLint plugin to run on save
"eslint.autoFixOnSave": true,
// Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
"prettier.disableLanguages": ["js"],
"git.confirmSync": false,
"git.autofetch": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"git.enableSmartCommit": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment