Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TomYeoman/3537e32e29da5a4a21e3fa3d3a5cac34 to your computer and use it in GitHub Desktop.
Save TomYeoman/3537e32e29da5a4a21e3fa3d3a5cac34 to your computer and use it in GitHub Desktop.
VS code settings.json for typescript
/**
----- Linting configurations
*/
// Prevent editor formatting on save for certain file types
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false,
},
"[typescript]": {
"editor.formatOnSave": false,
},
// Configure eslint to report + fix errors for correct file types
"editor.formatOnPaste": true,
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
{
"language": "javascript",
"autoFix": true
},
{
"language": "typescript",
"autoFix": true
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment