An ESLint formatter that outputs results in the Reviewdog Diagnostic Format (RDFormat), enabling seamless integration with Reviewdog for automated code review in CI pipelines. Version 1.0.6 is the latest stable release. It is maintained as part of the action-eslint project by Reviewdog. Key differentiators: produces machine-parseable RDJSON output optimized for Reviewdog's diagnostic reporting, supports GitHub Actions, and works with any CI that can parse JSON.
npm install eslint-formatter-rdjsonVerified import paths — ran on the pinned version, not inferred.
Shows how to use the rdjson formatter programmatically and via CLI to output Reviewdog-compatible JSON.
Ensure compatibility by testing with ESLint 9 and use eslint.config.js with format: 'rdjson'.
Pipe output to Reviewdog or parse RDJSON format accordingly.
Use the official GitHub Action reviewdog/action-eslint instead of manual formatter setup.
Run npm install eslint-formatter-rdjson --save-dev and use import syntax.
Change to import formatter from 'eslint-formatter-rdjson'.
Ensure eslint-formatter-rdjson is in devDependencies and run npx eslint --format rdjson.