Evan You
8 years ago
3 changed files with 17 additions and 1 deletions
@ -0,0 +1,7 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
files_to_lint=$(git diff --cached --name-only --diff-filter=ACM | grep '\.js$') |
|||
|
|||
if [ -n "$files_to_lint" ]; then |
|||
flow && NODE_ENV=production eslint $files_to_lint |
|||
fi |
Loading…
Reference in new issue