IGNORE_FILE=$([ -f .eslintignore ] && echo ".eslintignore" || echo ".gitignore") ESLINT_REPORT=$(echo "npx eslint . --cache=true --ignore-path=$IGNORE_FILE -f json || true") echo $ESLINT_REPORT