From 3c2497bccf94c48b7b361870ba8432d6a4a16e97 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Fri, 19 Aug 2022 14:43:06 -0500 Subject: [PATCH] dev: improve container setup and pre-configure linters (#1577) * added more formatters/linters * moved "make setup" to onCreateCommand --- .devcontainer/devcontainer.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8c45c8449..c17a8260b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -35,16 +35,22 @@ }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ + "dbaeumer.vscode-eslint", + "matangover.mypy", + "ms-python.black-formatter", + "ms-python.isort", "ms-python.python", - "ms-python.vscode-pylance" + "ms-python.vscode-pylance", + "Vue.volar" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [ 3000, 9000 ], + // Use 'onCreateCommand' to run commands at the end of container creation. // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "sudo chown -R vscode:vscode /workspaces/mealie/frontend/node_modules && make setup", + "onCreateCommand": "sudo chown -R vscode:vscode /workspaces/mealie/frontend/node_modules && make setup", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode", // "features": {