UNPKG

1.35 kBJSONView Raw
1// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/typescript-node
3{
4 "name": "Node.js & TypeScript",
5 "build": {
6 "dockerfile": "Dockerfile",
7 // Update 'VARIANT' to pick a Node version: 12, 14, 16, 18, 20
8 "args": {
9 "VARIANT": "20"
10 }
11 },
12
13 // Add the IDs of extensions you want installed when the container is created.
14 "extensions": [
15 "dbaeumer.vscode-eslint",
16 "esbenp.prettier-vscode",
17 "bierner.lit-html",
18 "runem.lit-plugin"
19 ],
20
21 // Use 'forwardPorts' to make a list of ports inside the container available locally.
22 "forwardPorts": [5000],
23
24 // Use 'postCreateCommand' to run commands after the container is created.
25 "postCreateCommand": "npm install",
26
27 // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
28 "remoteUser": "node",
29
30 "settings": {
31 "files.eol": "\n",
32 "editor.tabSize": 2,
33 "editor.formatOnPaste": false,
34 "editor.formatOnSave": true,
35 "editor.formatOnType": true,
36 "[typescript]": {
37 "editor.defaultFormatter": "esbenp.prettier-vscode"
38 },
39 "[javascript]": {
40 "editor.defaultFormatter": "esbenp.prettier-vscode"
41 },
42 "files.trimTrailingWhitespace": true
43 }
44}