9 lines
169 B
Bash
Executable file
9 lines
169 B
Bash
Executable file
#!/bin/sh
|
|
|
|
files="`git diff --staged --name-only --diff-filter=ACMR | tr \"\\n\" \" \"`"
|
|
for f in $files; do
|
|
$(npm bin)/prettier --write "$f"
|
|
git add -f "$f"
|
|
done
|
|
|
|
|