mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 13:56:29 +00:00
Fix devcontainer setup and bump node version to 22 (#2652)
This commit is contained in:
parent
8d0a224d3e
commit
6702464eab
@ -1,7 +1,7 @@
|
|||||||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/typescript-node/.devcontainer/base.Dockerfile
|
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/typescript-node/.devcontainer/base.Dockerfile
|
||||||
|
|
||||||
ARG VARIANT="18"
|
ARG VARIANT="22"
|
||||||
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:${VARIANT}
|
||||||
|
|
||||||
# Set an environment variable to be able to detect we are in dev container
|
# Set an environment variable to be able to detect we are in dev container
|
||||||
ENV NODE_ENV=devcontainer
|
ENV NODE_ENV=devcontainer
|
||||||
|
@ -4,24 +4,29 @@
|
|||||||
"dockerfile": "Dockerfile",
|
"dockerfile": "Dockerfile",
|
||||||
"context": ".."
|
"context": ".."
|
||||||
},
|
},
|
||||||
"appPort": [3000],
|
"appPort": ["3000:3000"],
|
||||||
"postCreateCommand": "script/setup",
|
"postCreateCommand": "script/setup",
|
||||||
"extensions": [
|
"customizations": {
|
||||||
"davidanson.vscode-markdownlint",
|
"vscode": {
|
||||||
"editorconfig.editorconfig",
|
|
||||||
"streetsidesoftware.code-spell-checker",
|
"extensions": [
|
||||||
"yzhang.markdown-all-in-one",
|
"davidanson.vscode-markdownlint",
|
||||||
"esbenp.prettier-vscode"
|
"editorconfig.editorconfig",
|
||||||
],
|
"streetsidesoftware.code-spell-checker",
|
||||||
"settings": {
|
"yzhang.markdown-all-in-one",
|
||||||
"editor.rulers": [80, 100, 120],
|
"esbenp.prettier-vscode"
|
||||||
"editor.renderWhitespace": "boundary",
|
],
|
||||||
"errorLens.gutterIconsEnabled": true,
|
"settings": {
|
||||||
"errorLens.addAnnotationTextPrefixes": false,
|
"editor.rulers": [80, 100, 120],
|
||||||
"errorLens.enabledDiagnosticLevels": ["error", "warning"],
|
"editor.renderWhitespace": "boundary",
|
||||||
"[markdown]": {
|
"errorLens.gutterIconsEnabled": true,
|
||||||
"editor.wordWrap": "wordWrapColumn",
|
"errorLens.addAnnotationTextPrefixes": false,
|
||||||
"editor.wordWrapColumn": 80
|
"errorLens.enabledDiagnosticLevels": ["error", "warning"],
|
||||||
|
"[markdown]": {
|
||||||
|
"editor.wordWrap": "wordWrapColumn",
|
||||||
|
"editor.wordWrapColumn": 80
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user