Bridge hack between Overleaf CE and Git [my fork from https://gitlab.com/axkibe/olgitbridge]
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
olgitbridge/eslint

8 lines
246 B

#!/bin/bash
if [ ! -f .eslint.stamp ]; then
touch -d 19700101 .eslint.stamp
fi
FILES=`find src -name \*.js -newer .eslint.stamp`
if [ -z "${FILES}" ]; then exit 0; fi
( eslint ${FILES} && touch .eslint.stamp ) | head -n 20
exit ${PIPESTATUS[0]}