main
text 10 lines 241 Bytes
Raw
1 #!/bin/sh
2 #
3 # To enable this hook, symlink or copy this file to .git/hooks/pre-commit.
4
5 # Redirect output to stderr.
6 exec 1>&2
7
8 git diff --cached --name-only --diff-filter=ACMRTUB | \
9 grep '\.js$' | \
10 xargs ./node_modules/.bin/eslint --