Skip to content

Instantly share code, notes, and snippets.

@rictorres
Created October 13, 2022 09:05
Embed
What would you like to do?
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment