From 9da624b16377c6a7885d25da5387b26f8db7f549 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Mon, 13 Sep 2021 13:45:01 +0200 Subject: [PATCH] =?UTF-8?q?dev:=20=F0=9F=8E=A8=20add=20shfmt=20params=20to?= =?UTF-8?q?=20pre-commit=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37554b0..043b8a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,4 +3,9 @@ repos: rev: v0.0.17 hooks: - id: shellcheck - - id: shfmt \ No newline at end of file + - id: shfmt + args: + - "-l" # list files whose formatting differs from shfmt's + - "-i 2" # indent: 0 for tabs (default), >0 for number of spaces + - "-ci" # switch cases will be indented + - "-w" # write result to file instead of stdout \ No newline at end of file