An ESLint formatter that outputs lint results in the Code Climate report format, suitable for integration with Code Climate's platform. Version 2.0.1 supports ESLint >=9 and requires Node.js 20+. The v2.0.0 release switched fingerprint hashing from SHA1 to SHA256, a breaking change. It offers both a CLI formatter (--format codeclimate) and a programmatic API (toCodeClimate). Unlike generic JSON formatters, this produces a Code Climate-specific JSON structure with categories, fingerprints, and relative paths.
npm install eslint-formatter-codeclimateVerified import paths — ran on the pinned version, not inferred.
Programmatically converts ESLint results to Code Climate format using toCodeClimate.
Update any systems that rely on fingerprint consistency (e.g., deduplication) to use the new hash.
Ensure eslint version is 9 or above.
Use import syntax or dynamic import().
Upgrade Node.js to 20+.
Use import syntax or dynamic import(), or set package type to module.
Run 'npm install eslint-formatter-codeclimate'.
Use import { toCodeClimate } from 'eslint-formatter-codeclimate'.Ensure the package is installed in the project and the formatter name matches the package name (--format codeclimate).