Skip to content

Commit

Permalink
Tell vscode to use prettier to autoformat yaml and js (#135)
Browse files Browse the repository at this point in the history
This allows us to more easily format things
  • Loading branch information
sdwilsh authored Mar 24, 2024
1 parent e28fd1d commit bbda5e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
},
"customizations": {
"vscode": {
"extensions": ["earthly.earthfile-syntax-highlighting"]
"extensions": [
"earthly.earthfile-syntax-highlighting",
"esbenp.prettier-vscode"
]
}
},
"remoteUser": "vscode",
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"earthly.earthfile-syntax-highlighting",
"github.vscode-github-actions"
"github.vscode-github-actions",
"esbenp.prettier-vscode"
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit bbda5e3

Please sign in to comment.