Modernize dev environment
This commit is contained in:
1 parent
862b93a175
commit
11dc0de087
3 files changed
+57
-65
No files matched your search
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "hass-browser_mod Dev",
|
||||
"image": "thomasloven/hass-custom-devcontainer",
|
||||
"postCreateCommand": "sudo -E container setup-dev && npm add",
|
||||
"containerEnv": {
|
||||
"DEVCONTAINER": "1"
|
||||
},
|
||||
"forwardPorts": [8123],
|
||||
"mounts": [
|
||||
"source=${localWorkspaceFolder},target=/config/www/workspace,type=bind",
|
||||
"source=${localWorkspaceFolder}/test,target=/config/test,type=bind",
|
||||
"source=${localWorkspaceFolder}/test/configuration.yaml,target=/config/configuration.yaml,type=bind",
|
||||
"source=${localWorkspaceFolder}/custom_components,target=/config/custom_components,type=bind"
|
||||
],
|
||||
"runArgs": ["--env-file", "${localWorkspaceFolder}/test/.env"],
|
||||
"extensions": [
|
||||
"github.vscode-pull-request-github",
|
||||
"esbenp.prettier-vscode",
|
||||
"spmeesseman.vscode-taskexplorer",
|
||||
"ms-python.python"
|
||||
],
|
||||
"settings": {
|
||||
"files.eol": "\n",
|
||||
"editor.tabSize": 2,
|
||||
"editor.formatOnPaste": false,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnType": true,
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"files.trimTrailingWhitespace": true,
|
||||
"python.linting.pylintEnabled": false,
|
||||
"python.linting.flake8Enabled": true,
|
||||
"python.linting.enabled": true,
|
||||
"python.formatting.provider": "black"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user