2016-10-13 18:09:22 +03:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
ESLINT=$(which eslint || true)
|
|
|
|
if [ -z "$ESLINT" ]; then
|
|
|
|
echo "Can't find command \"eslint\" in $PATH"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo Checking scripts with $ESLINT ...
|
2016-10-13 18:09:42 +03:00
|
|
|
find -name "*.js" -print0 | xargs -0 $ESLINT
|