diff --git a/.sample/run.sh b/.sample/run.sh index 2e8401d..f50f6ba 100755 --- a/.sample/run.sh +++ b/.sample/run.sh @@ -1,10 +1,15 @@ #!/usr/bin/env sh # Convert templated variables to shell variables +# shellcheck disable=SC2269 LOG_PATH=${LOG_PATH} +# shellcheck disable=SC2034 BOLD='\033[0;1m' + +# shellcheck disable=SC2059 printf "$${BOLD}Installing MODULE_NAME ...\n\n" + # Add code here # Use varibles from the templatefile function in main.tf # e.g. LOG_PATH, PORT, etc. diff --git a/.shellcheckrc b/.shellcheckrc deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index 0b41dde..a7d1cae 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "test": "bun test", "fmt": "bun x prettier --plugin prettier-plugin-sh -w **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt **/*.tf .sample/main.tf", "fmt:ci": "bun x prettier --plugin prettier-plugin-sh --check **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt -check **/*.tf .sample/main.tf", - "lint": "bun run lint.ts && bun x shellcheck -S error **/*.sh .sample/run.sh new.sh" + "lint": "bun run lint.ts && bun x shellcheck **/*.sh .sample/run.sh new.sh" }, "devDependencies": { "bun-types": "^1.0.3", diff --git a/vscode-web/run.sh b/vscode-web/run.sh index a907a5c..cc4916c 100644 --- a/vscode-web/run.sh +++ b/vscode-web/run.sh @@ -1,8 +1,10 @@ #!/usr/bin/env sh +# shellcheck disable=SC2034 BOLD='\033[0;1m' # Convert templated variables to shell variables +# shellcheck disable=SC2269 PORT=${PORT} LOG_PATH=${LOG_PATH} INSTALL_DIR=${INSTALL_DIR} @@ -10,6 +12,7 @@ INSTALL_DIR=${INSTALL_DIR} # Create install directory if it doesn't exist mkdir -p "$${INSTALL_DIR}" +# shellcheck disable=SC2059 printf "$${BOLD}Installing vscode-cli!\n" # Download and extract code-cli tarball