committed by
Julius Härtl
parent
a2adcf2487
commit
f8f755f31e
11
run-eslint.sh
Normal file
11
run-eslint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/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 ...
|
||||
find -name "*.js" -print0 | xargs -0 $ESLINT
|
||||
Reference in New Issue
Block a user