Skip to content

Instantly share code, notes, and snippets.

@jessevdp
Last active February 15, 2020 20:13
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 jessevdp/a9d8ad109feedfe3022a6bad56e5da42 to your computer and use it in GitHub Desktop.
Save jessevdp/a9d8ad109feedfe3022a6bad56e5da42 to your computer and use it in GitHub Desktop.
VSCode settings for typescript ESLint

VScode settings for a project using typescript & ESLint. Requires VSCode ESLint plugin.

  • Configures the ESLint plugin to validate typescript files.
  • Make sure the code editor autofixes on save (using the ESLint plugin too)
  • Make sure vscode uses eslint as the default (and only?) formatter for typescript files
{
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"eslint.validate": [
"typescript"
],
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment