dev: 🎨 add shfmt params to pre-commit check

This commit is contained in:
2021-11-03 18:09:47 +01:00
parent c01bea615e
commit 9da624b163
+5
View File
@@ -4,3 +4,8 @@ repos:
hooks: hooks:
- id: shellcheck - id: shellcheck
- id: shfmt - 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