An ESLint formatter that reports lint results as annotations in GitHub pull requests using the Checks API. Version 1.1.4 is the current stable release, with irregular updates. It requires ESLint >= 5.x and a GitHub App for authentication. Key differentiators: direct PR annotation integration, supports GitHub Enterprise, and uses eslint-formatter-pretty for console output. Unlike other formatters, it automatically detects CI environment and only runs there.
npm install eslint-formatter-githubNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs package and runs ESLint with GitHub formatter to report results as PR annotations.
Create a GitHub App and set ESLINT_APP_ID and ESLINT_PRIVATE_KEY (or use base64).
Use your own GitHub App to avoid security risks.
Use eslint --format github CLI flag or configure in .eslintrc file.
Set CI=true environment variable to test locally.
Export ESLINT_PRIVATE_KEY_BASE64 with base64-encoded key.
Set ESLINT_APP_ID to your GitHub App's ID.
Set ESLINT_PRIVATE_KEY with the contents of your GitHub App's private key.
Ensure App has Checks: Write permission and private key is correct.