docusaurus/.husky/pre-commit

8 lines
275 B
Bash
Executable File

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# Workaround of a mysterious bug in either lint-staged or husky.
# https://github.com/typicode/husky/issues/1134
# https://github.com/okonet/lint-staged/issues/693#issuecomment-1079759224
FORCE_COLOR=1 yarn lint-staged --allow-empty