|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node |
1 | 3 | {
|
2 |
| - "name": "Developmens", |
3 |
| - "build": { |
4 |
| - "dockerfile": "Dockerfile", |
5 |
| - "args": { |
6 |
| - "VARIANT": "14" |
7 |
| - } |
8 |
| - }, |
9 |
| - "settings": { |
10 |
| - "terminal.integrated.shell.linux": "/bin/bash", |
11 |
| - // Setup formatting to save with prettier |
12 |
| - "editor.formatOnSave": true, |
13 |
| - "editor.defaultFormatter": "esbenp.prettier-vscode", |
14 |
| - // Look throughout the project to auto set up eslint |
15 |
| - "eslint.workingDirectories": [ |
16 |
| - { |
17 |
| - "mode": "auto" |
18 |
| - } |
19 |
| - ], |
20 |
| - // Our eslint can be very heavy, so we perform it on save not on type |
21 |
| - "eslint.run": "onSave", |
22 |
| - // Ignore uncommon words |
23 |
| - "cSpell.userWords": ["commitd"], |
24 |
| - // Prefer relative imports |
25 |
| - "typescript.preferences.importModuleSpecifier": "relative" |
| 4 | + "name": "Node.js & TypeScript", |
| 5 | + "image": "mcr.microsoft.com/devcontainers/typescript-node:0-18", |
| 6 | + "features": { |
| 7 | + "ghcr.io/devcontainers/features/git:1": {}, |
| 8 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 9 | + "ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {}, |
| 10 | + "ghcr.io/eitsupi/devcontainer-features/jq-likes:1": {} |
26 | 11 | },
|
27 |
| - "extensions": [ |
28 |
| - "dbaeumer.vscode-eslint", |
29 |
| - "esbenp.prettier-vscode", |
30 |
| - "github.vscode-pull-request-github", |
31 |
| - "ms-vsliveshare.vsliveshare", |
32 |
| - "eamodio.gitlens", |
33 |
| - "streetsidesoftware.code-spell-checker", |
34 |
| - "ryanluker.vscode-coverage-gutters" |
35 |
| - ], |
| 12 | + |
36 | 13 | "postCreateCommand": "yarn install",
|
37 |
| - "remoteUser": "node" |
| 14 | + |
| 15 | + "customizations": { |
| 16 | + "vscode": { |
| 17 | + "settings": { |
| 18 | + "terminal.integrated.profiles.linux": { |
| 19 | + "zsh": { |
| 20 | + "path": "zsh", |
| 21 | + "args": ["-l"] |
| 22 | + } |
| 23 | + }, |
| 24 | + "terminal.integrated.defaultProfile.linux": "zsh", |
| 25 | + // Setup formatting to save with prettier |
| 26 | + "editor.formatOnSave": true, |
| 27 | + "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 28 | + // Look throughout the project to auto set up eslint |
| 29 | + "eslint.workingDirectories": [ |
| 30 | + { |
| 31 | + "mode": "auto" |
| 32 | + } |
| 33 | + ], |
| 34 | + // Our eslint can be very heavy, so we perform it on save not on type |
| 35 | + "eslint.run": "onSave", |
| 36 | + // Ignore uncommon words |
| 37 | + "cSpell.userWords": ["commitd"], |
| 38 | + // Prefer relative imports |
| 39 | + "typescript.preferences.importModuleSpecifier": "relative" |
| 40 | + }, |
| 41 | + "extensions": [ |
| 42 | + "dbaeumer.vscode-eslint", |
| 43 | + "esbenp.prettier-vscode", |
| 44 | + "github.vscode-pull-request-github", |
| 45 | + "ms-vsliveshare.vsliveshare", |
| 46 | + "eamodio.gitlens", |
| 47 | + "streetsidesoftware.code-spell-checker", |
| 48 | + "ryanluker.vscode-coverage-gutters" |
| 49 | + ] |
| 50 | + } |
| 51 | + } |
38 | 52 | }
|
0 commit comments