diffs=$(yarn prettier -l | grep '\.[jt]sx\?$' | tr '\n' ' ')
[ -z "$diffs" ] && exit 0

echo >&2 "Javascript files must be formatted with Prettier. Please run:"
echo >&2 "yarn prettier --write "$diffs""

exit 1
