An ESLint formatter that outputs lint results as GitHub Checks annotations, enabling inline code annotations in GitHub Actions pull request checks. Version 0.1.0, released as an early-stage package with no reported release cadence. Unlike other ESLint formatters (e.g., json, stylish), this one specifically targets CI integration with GitHub Actions to display warnings/errors directly in pull request diffs. It supports reporting multiple messages per file and uses the standard ESLint formatter API. Potential alternative: @eslint/skip-annotations is more mature but limited to specific use cases.
npm install eslint-formatter-github-annotationsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
An example package.json configuration to run ESLint with the GitHub annotations formatter, which will produce annotations in GitHub Actions logs.
Use -f github-annotations when running ESLint.
Use import or dynamic import. If using CommonJS, consider switching to ESM or using a bundler.
Only use this formatter in GitHub Actions workflows. For local development, use another formatter like 'stylish'.
Ensure eslint is in devDependencies. Install with npm install --save-dev eslint.
Run npm install --save-dev eslint-formatter-github-annotations. Ensure node_modules is correct.
Change -f flag to -f github-annotations.
Use import or dynamic import instead of require().
Ensure there are lint issues and run in a GitHub Actions workflow.