Add eslintrc
Signed-off-by: Julius Härtl <jus@bitgrid.net> Make run-eslint.sh executable Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
f8f755f31e
commit
47b51c512d
6
run-eslint.sh
Normal file → Executable file
6
run-eslint.sh
Normal file → Executable file
@@ -8,4 +8,8 @@ if [ -z "$ESLINT" ]; then
|
||||
fi
|
||||
|
||||
echo Checking scripts with $ESLINT ...
|
||||
find -name "*.js" -print0 | xargs -0 $ESLINT
|
||||
find -name "*.js" -not -path '*js/node_modules*' \
|
||||
-not -path '*l10n/*' \
|
||||
-not -path '*js/vendor*' \
|
||||
-not -path '*js/tests*' \
|
||||
-print0 | xargs -0 $ESLINT --quiet
|
||||
|
||||
Reference in New Issue
Block a user