Skip to content

Instantly share code, notes, and snippets.

@aloisioaw
Created March 15, 2021 17:25
Show Gist options
  • Select an option

  • Save aloisioaw/8987719548bcfd6bfa5373e642845aa1 to your computer and use it in GitHub Desktop.

Select an option

Save aloisioaw/8987719548bcfd6bfa5373e642845aa1 to your computer and use it in GitHub Desktop.
Visual Studio Code configurations with auto format using Prettier - Javascript
{
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.detectIndentation": false,
"editor.tabSize": 2,
"window.zoomLevel": 0,
"debug.javascript.autoAttachFilter": "onlyWithFlag",
"enableTelemetry": false,
"editor.formatOnSave": false,
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": [
"javascript"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment