6 lines
141 B
Bash
Executable file
6 lines
141 B
Bash
Executable file
#!/bin/sh
|
|
FILES=$(git diff --cached --name-only)
|
|
[ -z "$FILES" ] && exit 0
|
|
|
|
# Run lint-staged on all staged
|
|
echo "$FILES" | yarn lint-staged
|