From bbda5e37719899eeddb9d56bc7e9c1504d99d323 Mon Sep 17 00:00:00 2001 From: Shawn Wilsher <656602+sdwilsh@users.noreply.github.com> Date: Sun, 24 Mar 2024 13:31:45 -0700 Subject: [PATCH] Tell vscode to use prettier to autoformat yaml and js (#135) This allows us to more easily format things --- .devcontainer/devcontainer.json | 5 ++++- .vscode/extensions.json | 3 ++- .vscode/settings.json | 12 ++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 97ca29f..f8bfeae 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,7 +21,10 @@ }, "customizations": { "vscode": { - "extensions": ["earthly.earthfile-syntax-highlighting"] + "extensions": [ + "earthly.earthfile-syntax-highlighting", + "esbenp.prettier-vscode" + ] } }, "remoteUser": "vscode", diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 6ddc166..82082c9 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,7 @@ { "recommendations": [ "earthly.earthfile-syntax-highlighting", - "github.vscode-github-actions" + "github.vscode-github-actions", + "esbenp.prettier-vscode" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..10369b5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[yaml]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "prettier.prettierPath": "./node_modules/.cache/prettier" +}