{"id":29117758,"url":"https://github.com/remcohaszing/eslint-formatter-codeclimate","last_synced_at":"2026-02-18T10:10:11.019Z","repository":{"id":297909103,"uuid":"998268351","full_name":"remcohaszing/eslint-formatter-codeclimate","owner":"remcohaszing","description":"Format ESLint results as a Code Climate report","archived":false,"fork":false,"pushed_at":"2025-11-28T10:00:53.000Z","size":334,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-24T13:19:59.916Z","etag":null,"topics":["codeclimate","eslint","eslint-formatter","eslintformatter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remcohaszing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"remcohaszing"}},"created_at":"2025-06-08T08:34:48.000Z","updated_at":"2025-11-28T10:00:56.000Z","dependencies_parsed_at":"2025-06-08T09:37:13.240Z","dependency_job_id":null,"html_url":"https://github.com/remcohaszing/eslint-formatter-codeclimate","commit_stats":null,"previous_names":["remcohaszing/eslint-formatter-codeclimate"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/remcohaszing/eslint-formatter-codeclimate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Feslint-formatter-codeclimate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Feslint-formatter-codeclimate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Feslint-formatter-codeclimate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Feslint-formatter-codeclimate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remcohaszing","download_url":"https://codeload.github.com/remcohaszing/eslint-formatter-codeclimate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcohaszing%2Feslint-formatter-codeclimate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29575401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeclimate","eslint","eslint-formatter","eslintformatter"],"created_at":"2025-06-29T12:05:46.738Z","updated_at":"2026-02-18T10:10:11.012Z","avatar_url":"https://github.com/remcohaszing.png","language":"JavaScript","funding_links":["https://github.com/sponsors/remcohaszing"],"categories":[],"sub_categories":[],"readme":"# eslint-formatter-codeclimate\n\n[![github actions](https://github.com/remcohaszing/eslint-formatter-codeclimate/actions/workflows/ci.yaml/badge.svg)](https://github.com/remcohaszing/eslint-formatter-codeclimate/actions/workflows/ci.yaml)\n[![codecov](https://codecov.io/gh/remcohaszing/eslint-formatter-codeclimate/branch/main/graph/badge.svg)](https://codecov.io/gh/remcohaszing/eslint-formatter-codeclimate)\n[![npm version](https://img.shields.io/npm/v/eslint-formatter-codeclimate)](https://www.npmjs.com/package/eslint-formatter-codeclimate)\n[![npm downloads](https://img.shields.io/npm/dm/eslint-formatter-codeclimate)](https://www.npmjs.com/package/eslint-formatter-codeclimate)\n\nFormat [ESLint](https://eslint.org) results as a\n[Code Climate](https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md) report.\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Command Line](#command-line)\n- [API](#api)\n  - [`toCodeClimate(results, rulesMeta, cwd)`](#tocodeclimateresults-rulesmeta-cwd)\n  - [`formatter()`](#formatter)\n- [Compatibility](#compatibility)\n- [License](#license)\n\n## Installation\n\n```sh\nnpm install eslint-formatter-codeclimate\n```\n\n## Usage\n\n### Command Line\n\nUsing the ESLint CLI:\n\n```sh\neslint --format codeclimate\n```\n\nProgrammatically using Node.js:\n\n```js\nimport { ESLint } from 'eslint'\nimport { toCodeClimate } from 'eslint-formatter-codeclimate'\n\nconst cwd = process.cwd()\nconst eslint = new ESLint({ cwd })\nconst results = await eslint.lintFiles([])\nconst rulesMeta = eslint.getRulesMetaForResults(results)\nconst issues = toCodeClimate(results, rulesMeta, cwd)\n\nconsole.log(issues)\n```\n\n## API\n\n### `toCodeClimate(results, rulesMeta, cwd)`\n\nConvert ESLint messages to CodeClimate issues.\n\n#### Arguments\n\n- `results` (`ESLint.LintResult[]`) — The ESLint report results.\n- `rulesMeta` (`Record\u003cstring, Rule.RuleMetaData\u003e`) — The ESLint rule meta data.\n- `cwd` (`string`) — The current work directory to calculate relative paths against.\n\n#### Returns\n\nThe ESLint messages in the form of a CodeClimate report.\n\n### `formatter()`\n\nThe default export is an ESLint formatter which represents ESLint results as a CodeClimate report.\n\n#### Arguments\n\n- `results` (`ESLint.LintResult[]`) — The ESLint report results.\n- `data` (`ESLint.LintResultData`) — The ESLint report result data.\n\n#### Returns\n\nThe Code Climate report as a string.\n\n## Compatibility\n\nThis project is compatible with Node.js 20 or greater.\n\n## License\n\n[MIT](LICENSE.md) © [Remco Haszing](https://github.com/remcohaszing)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcohaszing%2Feslint-formatter-codeclimate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremcohaszing%2Feslint-formatter-codeclimate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcohaszing%2Feslint-formatter-codeclimate/lists"}