From 88d03c647b2352fdd68d6ab9274f7f64ed5d0f73 Mon Sep 17 00:00:00 2001 From: Nick Rolfe Date: Fri, 27 Oct 2023 17:21:58 +0100 Subject: [PATCH] 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`. --- .vscode/settings.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7209d93184..de24441766 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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" + }, }