Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
VSCode settings: set default formatter for TS
Tell VSCode to format code with Prettier, since that's the same tool we
use to check the format with `npm run lint`.
  • Loading branch information
Nick Rolfe committed Oct 27, 2023
1 parent a3795eb commit 88d03c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Expand Up @@ -12,5 +12,8 @@
"git.ignoreLimitWarning": true,
// Use the vendored TypeScript version to have a consistent development experience across
// machines.
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
}

0 comments on commit 88d03c6

Please sign in to comment.