From 0ba53b6adf917097258105455cbc1b580d7a6d9e Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 15 Mar 2021 15:14:26 -0700 Subject: [PATCH] feat: add prettier-plugin-sh --- ci/dev/fmt.sh | 1 + package.json | 3 ++- yarn.lock | 14 +++++++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ci/dev/fmt.sh b/ci/dev/fmt.sh index cd5899543..4e9464fd2 100755 --- a/ci/dev/fmt.sh +++ b/ci/dev/fmt.sh @@ -16,6 +16,7 @@ main() { "*.toml" "*.yaml" "*.yml" + "*.sh" ) prettier --write --loglevel=warn $( git ls-files "${prettierExts[@]}" | grep -v "lib/vscode" | grep -v 'helm-chart' diff --git a/package.json b/package.json index 033a3f738..9df7b19fb 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,8 @@ "istanbul-badges-readme": "^1.2.0", "leaked-handles": "^5.2.0", "parcel-bundler": "^1.12.4", - "prettier": "^2.0.5", + "prettier": "^2.2.1", + "prettier-plugin-sh": "^0.6.0", "stylelint": "^13.0.0", "stylelint-config-recommended": "^3.0.0", "ts-node": "^9.0.0", diff --git a/yarn.lock b/yarn.lock index 3b6246e37..5cfd19cb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5202,6 +5202,11 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +mvdan-sh@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/mvdan-sh/-/mvdan-sh-0.5.0.tgz#fa76f611a103595ad0f04f5d18e582892c46e87c" + integrity sha512-UWbdl4LHd2fUnaEcOUFVWRdWGLkNoV12cKVIPiirYd8qM5VkCoCTXErlDubevrkEG7kGohvjRxAlTQmOqG80tw== + nan@^2.12.1: version "2.14.2" resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" @@ -6306,7 +6311,14 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@^2.0.5: +prettier-plugin-sh@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/prettier-plugin-sh/-/prettier-plugin-sh-0.6.0.tgz#021c22597a5a866c346095cd7f6c662a49dea249" + integrity sha512-y+SSThg/8mrGGkcAolWpociiTZlH7nlIUtqZl1dueyhngof8rD48tUHVQqvIaCx21T/0+9TyzsTEsVviPjR5og== + dependencies: + mvdan-sh "^0.5.0" + +prettier@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==