Files
the_order/.husky/pre-commit
T

10 lines
327 B
Bash
Executable File

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
repo_root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
cd "$repo_root"
# Anchor lint-staged to this repo so commits launched from a parent workspace
# still resolve local tooling and config from the-order.
"$repo_root/node_modules/.bin/lint-staged" --cwd "$repo_root"