Skip to content

Commit 8ecd957

Browse files
committed
Add additional shfmt options
These options are baked into the functionality of the old hook but must be explicitly declared for the new hook.
1 parent 5ddb14d commit 8ecd957

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ repos:
9191
hooks:
9292
- id: shfmt
9393
args:
94+
# List files that will be formatted
95+
- --list
96+
# Write result to file instead of stdout
97+
- --write
9498
# Indent by two spaces
9599
- --indent
96100
- "2"

0 commit comments

Comments
 (0)