Skip to content

Instantly share code, notes, and snippets.

@kasuken
Created June 9, 2023 12:34
Show Gist options
  • Save kasuken/064cd943bc49cb0b65d0ef6e8d921050 to your computer and use it in GitHub Desktop.
Save kasuken/064cd943bc49cb0b65d0ef6e8d921050 to your computer and use it in GitHub Desktop.
GitHub Codespaces devcontainer.json for Docusaurus
{
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04",
"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",
"ms-vscode.wordcount"
],
"forwardPorts": [3000],
"containerUser": "vscode",
"postCreateCommand": "yarn install",
"waitFor": "postCreateCommand", // otherwise automated jest tests fail
"features": {
"node": {
"version": "18"
},
"github-cli": "latest"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment