Skip to content

Commit

Permalink
VSCode settings: set default formatter for TS
Browse files Browse the repository at this point in the history
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
nickrolfe 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
Original file line number Diff line number Diff line change
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.