Skip to content

Instantly share code, notes, and snippets.

@rictorres
Created October 13, 2022 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rictorres/8af48d9498a34f3c847548e48fbe90b3 to your computer and use it in GitHub Desktop.
Save rictorres/8af48d9498a34f3c847548e48fbe90b3 to your computer and use it in GitHub Desktop.
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