1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00
transmission/format/pre-commit
Charles Kerr be219ddee0
chore: add precommit hook for testing code style (#1448)
* chore: add precommit hook for testing code style

* chore: use prettier + eslint for js code
2020-09-13 21:41:32 -05:00

6 lines
142 B
Bash
Executable file

#!/usr/bin/env sh
[ -z "$TR_SKIP_HOOKS" ] || exit 0
root="$(git rev-parse --show-toplevel)"
exec "${root}/format/format.sh" --staged --test