Skip to content

Commit 88d03c6

Browse files
committed
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`.
1 parent a3795eb commit 88d03c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.vscode/settings.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
"git.ignoreLimitWarning": true,
1313
// Use the vendored TypeScript version to have a consistent development experience across
1414
// machines.
15-
"typescript.tsdk": "node_modules/typescript/lib"
15+
"typescript.tsdk": "node_modules/typescript/lib",
16+
"[typescript]": {
17+
"editor.defaultFormatter": "esbenp.prettier-vscode"
18+
},
1619
}

0 commit comments

Comments
 (0)