Official JSON formatter for ESLint, extracted as a standalone package at version 9.0.1. Released alongside ESLint 9.x, matching its output format. Provides typed JSON output of lint results as an array of file result objects. Published independently to avoid depending on the full ESLint package. Supports Node >=18.18.0. Ships TypeScript definitions.
npm install eslint-formatter-jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Formats ESLint LintResult array into a JSON string.
Switch to eslint-formatter-json standalone package.
Use dynamic import() or set type: "module" in package.json.
Pass results with absolute or relative paths as needed.
Use ESLint's built-in format('json') or eslint-formatter-json@8.Use import or dynamic import() instead of require().
Convert your project to ESM (type: "module" in package.json) or use dynamic import().