ESLint Reporter for GitHub Actions
A custom formatter for ESLint that creates annotations when run via GitHub Actions
Installation
npm install -D @jamesacarr/eslint-formatter-github-actionsOr, even better:
yarn add -D @jamesacarr/eslint-formatter-github-actionsUsage
To get annotations working in your GitHub Actions runs, you need to run ESLint with the --format or -f flag. For example:
eslint -f @jamesacarr/github-actionsYou can also use this formatter if you're using XO:
xo --reporter @jamesacarr/github-actions