Add eslint drone test

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-11-11 12:12:32 +01:00
committed by Julius Härtl
parent a2adcf2487
commit f8f755f31e
3 changed files with 20 additions and 0 deletions

11
run-eslint.sh Normal file
View 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