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