mirror of
https://github.com/facebook/docusaurus.git
synced 2026-06-28 03:30:14 -04:00
8180a0bf6a
* chore(devcontainer): fix yarn install by disabling a download prompt * chore(devcontainer): bump Node.js version --------- Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[jsonc]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true
|
|
}
|
|
},
|
|
"extensions": [
|
|
"dbaeumer.vscode-eslint",
|
|
"orta.vscode-jest",
|
|
"esbenp.prettier-vscode",
|
|
"streetsidesoftware.code-spell-checker"
|
|
]
|
|
}
|
|
},
|
|
"forwardPorts": [3000],
|
|
"containerUser": "vscode",
|
|
"containerEnv": {
|
|
"COREPACK_ENABLE_DOWNLOAD_PROMPT": "0" // Avoid waiting for a prompt in the postCreateCommand
|
|
},
|
|
"postCreateCommand": "pnpm install",
|
|
"waitFor": "postCreateCommand", // otherwise automated jest tests fail
|
|
"features": {
|
|
"node": {
|
|
"version": "24"
|
|
},
|
|
"github-cli": "latest"
|
|
}
|
|
}
|