Created
May 1, 2019 20:02
-
-
Save TomYeoman/3537e32e29da5a4a21e3fa3d3a5cac34 to your computer and use it in GitHub Desktop.
VS code settings.json for typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
----- 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