-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.devcontainer.json
More file actions
39 lines (39 loc) · 1.53 KB
/
Copy path.devcontainer.json
File metadata and controls
39 lines (39 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/typescript-node
{
"name": "Open Home Foundation - API",
"image": "mcr.microsoft.com/devcontainers/typescript-node:24-bookworm@sha256:7f4046f8149ced6dbb5f79089bfac97a300627f9e08f91a47237b555e730e71c",
"forwardPorts": [3000],
"portsAttributes": {
"3000": {
"label": "web-api (HTTP)"
}
},
"customizations": {
"vscode": {
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true
},
// The settings above name Prettier as the formatter and the project lints
// with ESLint, so both extensions have to actually be present.
"extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
}
},
// mise runs this project's tasks, so the container needs it before setup.
"onCreateCommand": "./script/install-mise",
// Trust and provision the toolchain in .mise.toml, then run the project's own
// setup task rather than duplicating what it does here.
"postCreateCommand": "mise trust && mise install && mise run setup",
"remoteUser": "node"
}