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.
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
files_to_lint=$(git diff --cached --name-only --diff-filter=ACM | grep '\.js$')
|
|
|
|
|
|
|
|
if [ -n "$files_to_lint" ]; then
|
|
|
|
NODE_ENV=production eslint --quiet $files_to_lint
|
|
|
|
fi
|