taskcafe/scripts/lint.sh
2020-09-19 17:26:02 -05:00

15 lines
211 B
Bash
Executable File

#!/bin/sh
PASS=true
for FILE in "$@"
do
yarn --cwd frontend run eslint $(echo $FILE | sed 's/frontend\///g')
if [ "$?" -eq 1 ]; then
PASS=false
fi
done
if [ "$PASS" = "false" ]; then
exit 1
fi