swc/.husky/pre-commit
2022-04-17 16:24:00 +00:00

12 lines
200 B
Bash
Executable File

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged
# Remove empty directories
if command -v fd &> /dev/null
then
fd -H '^\.DS_Store$' -tf -X rm || true
fd -te -td -X rmdir || true
fi