Browse Source

add quiet flag to pre-commit eslint

dev
Evan You 8 years ago
parent
commit
90301adbb5
  1. 2
      build/git-hooks/pre-commit

2
build/git-hooks/pre-commit

@ -3,5 +3,5 @@
files_to_lint=$(git diff --cached --name-only --diff-filter=ACM | grep '\.js$') files_to_lint=$(git diff --cached --name-only --diff-filter=ACM | grep '\.js$')
if [ -n "$files_to_lint" ]; then if [ -n "$files_to_lint" ]; then
NODE_ENV=production eslint $files_to_lint NODE_ENV=production eslint --quiet $files_to_lint
fi fi

Loading…
Cancel
Save