Skip to content

Commit

Permalink
Tell vscode to use prettier to autoformat yaml and js
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwilsh committed Mar 24, 2024
1 parent e28fd1d commit ec44f1a
Show file tree
Hide file tree
Showing 3 changed files with 14 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"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

0 comments on commit ec44f1a

Please sign in to comment.