Skip to content

Instantly share code, notes, and snippets.

@ikondrat
Created June 8, 2021 10:05
Show Gist options
  • Select an option

  • Save ikondrat/26736bc585538c50c65244280f13d113 to your computer and use it in GitHub Desktop.

Select an option

Save ikondrat/26736bc585538c50c65244280f13d113 to your computer and use it in GitHub Desktop.
VS Code Esbenp plugin autoformatting example
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"editor.codeActionsOnSave": {
"source.fixAll": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment