Registry / testing / eslint-formatter-rdjson

eslint-formatter-rdjson

JSON →
library1.0.6jsnpmunverified

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-rdjson
INSTALL
IMPORT
SIG · ESLINT-FORMATTER-R
E
eslint-formatter-rdjson
testingjavascriptv1.0.6
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

formatter
import formatter from 'eslint-formatter-rdjson'
const formatter = require('eslint-formatter-rdjson')
ESM-only package; CommonJS require fails.
default
import rdjson from 'eslint-formatter-rdjson'
import { rdjson } from 'eslint-formatter-rdjson'
The package provides a default export, not named exports.
use in ESLint config
format: 'rdjson'
formatter: 'eslint-formatter-rdjson'
In .eslintrc or eslint.config.js, set format to 'rdjson' directly.

Shows how to use the rdjson formatter programmatically and via CLI to output Reviewdog-compatible JSON.

// Run ESLint with the rdjson formatter import { ESLint } from 'eslint'; const eslint = new ESLint({ overrideConfig: { format: 'rdjson' } }); const results = await eslint.lintFiles(['src/**/*.js']); const formatter = await eslint.loadFormatter('eslint-formatter-rdjson'); const resultText = await formatter.format(results); console.log(resultText); // Or via CLI: // npx eslint --format rdjson src/
Debug
Known issues
breakingESLint 9+ breaking changes: eslint-formatter-rdjson 1.0.6 may not work with flat config without explicit formatter support.
fix
Ensure compatibility by testing with ESLint 9 and use eslint.config.js with format: 'rdjson'.
affects: >=1.0.0
gotchaFormatter output is RDJSON, not standard ESLint JSON; cannot be piped directly to other tools that expect JSON.
fix
Pipe output to Reviewdog or parse RDJSON format accordingly.
affects: *
deprecatedThe package is bundled with reviewdog/action-eslint; standalone usage is discouraged if you are using the action.
fix
Use the official GitHub Action reviewdog/action-eslint instead of manual formatter setup.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'eslint-formatter-rdjson'
Missing or incorrect installation / CommonJS require instead of ESM import.
fix
Run npm install eslint-formatter-rdjson --save-dev and use import syntax.
TypeError: formatter is not a function
Incorrect import style; default export used as named export.
fix
Change to import formatter from 'eslint-formatter-rdjson'.
ESLint configuration error: Invalid formatter 'rdjson'
Formatter not found because the package is not installed or misconfigured.
fix
Ensure eslint-formatter-rdjson is in devDependencies and run npx eslint --format rdjson.
Upgrade
Version history
1.0.6latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required to use the formatter
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-formatter-rdjson — npm install eslint-formatter-rdjson · libregistry