You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
190 B
8 lines
190 B
8 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
files_to_lint=$(git diff --cached --name-only --diff-filter=ACM | grep '\.js$')
|
||
|
|
||
|
if [ -n "$files_to_lint" ]; then
|
||
8 years ago
|
NODE_ENV=production eslint --quiet $files_to_lint
|
||
8 years ago
|
fi
|