{"_id":"eslint-formatter-codeclimate","_rev":"5-463662322ad871f2f883bb224ab8ac6e","name":"eslint-formatter-codeclimate","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"eslint-formatter-codeclimate","version":"1.0.0","keywords":["codeclimate","eslint","eslint-formatter","eslintformatter"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"eslint-formatter-codeclimate@1.0.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/eslint-formatter-codeclimate#readme","bugs":{"url":"https://github.com/remcohaszing/eslint-formatter-codeclimate/issues"},"dist":{"shasum":"744b75bb6995c494594af046eaa46a1135994e00","tarball":"https://registry.npmjs.org/eslint-formatter-codeclimate/-/eslint-formatter-codeclimate-1.0.0.tgz","fileCount":3,"integrity":"sha512-NKD5NQKYnktf4IaX/a10gjRWuEgwmKFcJ7inKOJTv8K3h2UaTqKLgg7VCrZxdUqMon/wYQDMhcJD249NqvD2Ag==","signatures":[{"sig":"MEQCIEdmtCcljPe3WrBAwAmHWgnZeKMSZCjs5YMZv4KW2N0aAiAxPCq3aomwFFOewxMhlPRYnXgJajOshAi/tCevuG+TYQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4800},"type":"module","exports":"./lib/eslint-formatter-codeclimate.js","funding":"https://github.com/sponsors/remcohaszing","gitHead":"a7c44fd3b1c69d8f13e5f701b9e78f09cda50317","scripts":{"test":"c8 node --test","prepack":"tsc --build"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"repository":{"url":"git+https://github.com/remcohaszing/eslint-formatter-codeclimate.git","type":"git"},"_npmVersion":"10.9.2","description":"Format ESLint results as a Code Climate report","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","dependencies":{"codeclimate-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","typescript":"^5.0.0","snapshot-fixtures":"^1.0.0","@remcohaszing/eslint":"^11.0.0","remark-preset-remcohaszing":"^3.0.0"},"peerDependencies":{"eslint":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-formatter-codeclimate_1.0.0_1749372046093_0.7794514102573413","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"eslint-formatter-codeclimate","version":"1.0.1","keywords":["codeclimate","eslint","eslint-formatter","eslintformatter"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"eslint-formatter-codeclimate@1.0.1","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/eslint-formatter-codeclimate#readme","bugs":{"url":"https://github.com/remcohaszing/eslint-formatter-codeclimate/issues"},"dist":{"shasum":"2d3d94afc3fbf9795faae43b5455e78d841e9e2a","tarball":"https://registry.npmjs.org/eslint-formatter-codeclimate/-/eslint-formatter-codeclimate-1.0.1.tgz","fileCount":6,"integrity":"sha512-9rF2Vem/THcV1h9rZrKxdrA5b9Pvzl/u0qMFojbOTrKE+PRcWXeawMDyuHaETA2Bra1h8AVmM+Rte6/4GoU5/w==","signatures":[{"sig":"MEYCIQDLiEKzH5M9T1+BYQY5BKp97oxAAB3s7TcIaPsxoeLTlwIhAIOv/u6j0RMw5bWqivMlQAj1PfIhSAnTzaezkRJJeL/d","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-formatter-codeclimate@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10093},"type":"module","_from":"file:eslint-formatter-codeclimate-1.0.1.tgz","exports":"./lib/eslint-formatter-codeclimate.js","funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"c8 node --test","prepack":"tsc --build"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"_resolved":"/home/runner/work/eslint-formatter-codeclimate/eslint-formatter-codeclimate/eslint-formatter-codeclimate-1.0.1.tgz","_integrity":"sha512-9rF2Vem/THcV1h9rZrKxdrA5b9Pvzl/u0qMFojbOTrKE+PRcWXeawMDyuHaETA2Bra1h8AVmM+Rte6/4GoU5/w==","repository":{"url":"git+https://github.com/remcohaszing/eslint-formatter-codeclimate.git","type":"git"},"_npmVersion":"11.3.0","description":"Format ESLint results as a Code Climate report","directories":{},"sideEffects":false,"_nodeVersion":"24.1.0","dependencies":{"codeclimate-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","typescript":"^5.0.0","snapshot-fixtures":"^1.0.0","@remcohaszing/eslint":"^11.0.0","remark-preset-remcohaszing":"^3.0.0"},"peerDependencies":{"eslint":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-formatter-codeclimate_1.0.1_1749372338573_0.12161645746281136","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"eslint-formatter-codeclimate","version":"1.0.2","keywords":["codeclimate","eslint","eslint-formatter","eslintformatter"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"eslint-formatter-codeclimate@1.0.2","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/eslint-formatter-codeclimate#readme","bugs":{"url":"https://github.com/remcohaszing/eslint-formatter-codeclimate/issues"},"dist":{"shasum":"f1096624e766ee8121f0e39e80c5f9a8cc706fa2","tarball":"https://registry.npmjs.org/eslint-formatter-codeclimate/-/eslint-formatter-codeclimate-1.0.2.tgz","fileCount":6,"integrity":"sha512-9ygAJag38O/oITwzPnvNXz8vuke6JuX1qeSbch+2m5ZQT/1exCyHkrymfJZpR5GZuYd17Khb1SOAsehSMV/W0Q==","signatures":[{"sig":"MEYCIQDiLxv806pcFl1AVBFs0hd+4kRvFXOPOGMwVAq9TvvXSQIhAKR007HpwkPbLJm+Ujtdo6uN2DA8iiEWLuR/VPYpShn5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-formatter-codeclimate@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10172},"type":"module","_from":"file:eslint-formatter-codeclimate-1.0.2.tgz","exports":{"types":"./types/eslint-formatter-codeclimate.d.ts","default":"./lib/eslint-formatter-codeclimate.js"},"funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"c8 node --test","prepack":"tsc --build"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"_resolved":"/home/runner/work/eslint-formatter-codeclimate/eslint-formatter-codeclimate/eslint-formatter-codeclimate-1.0.2.tgz","_integrity":"sha512-9ygAJag38O/oITwzPnvNXz8vuke6JuX1qeSbch+2m5ZQT/1exCyHkrymfJZpR5GZuYd17Khb1SOAsehSMV/W0Q==","repository":{"url":"git+https://github.com/remcohaszing/eslint-formatter-codeclimate.git","type":"git"},"_npmVersion":"11.3.0","description":"Format ESLint results as a Code Climate report","directories":{},"sideEffects":false,"_nodeVersion":"24.1.0","dependencies":{"codeclimate-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","typescript":"^5.0.0","snapshot-fixtures":"^1.0.0","@remcohaszing/eslint":"^11.0.0","remark-preset-remcohaszing":"^3.0.0"},"peerDependencies":{"eslint":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-formatter-codeclimate_1.0.2_1749372565854_0.8368429104773478","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"eslint-formatter-codeclimate","version":"2.0.0","keywords":["codeclimate","eslint","eslint-formatter","eslintformatter"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"eslint-formatter-codeclimate@2.0.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/eslint-formatter-codeclimate#readme","bugs":{"url":"https://github.com/remcohaszing/eslint-formatter-codeclimate/issues"},"dist":{"shasum":"6bedfbce6b48ef744b14db8e64e45a8f93b8663e","tarball":"https://registry.npmjs.org/eslint-formatter-codeclimate/-/eslint-formatter-codeclimate-2.0.0.tgz","fileCount":6,"integrity":"sha512-Xg/5QWF5o/BijQvZzOFojzxQkWoKQIZatGSEx9pfOkdrcx8ovh+J1N+IvwK210jrj8+yRvFGDJLWV8oEQP3T6A==","signatures":[{"sig":"MEYCIQDMGI6B4GZSBWZFUNlj3/esiZ58MV+0O0DpSB5/1MW48gIhALsQA3QHuxLvrzyQ+B0jq2rmFb/gfcLc8FOg3BrqHSNH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-formatter-codeclimate@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9954},"type":"module","_from":"file:eslint-formatter-codeclimate-2.0.0.tgz","exports":{"types":"./types/eslint-formatter-codeclimate.d.ts","default":"./lib/eslint-formatter-codeclimate.js"},"funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"c8 node --test","prepack":"tsc --build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c898f81c-5ee9-42f6-8057-a834c4bfe889"}},"_resolved":"/home/runner/work/eslint-formatter-codeclimate/eslint-formatter-codeclimate/eslint-formatter-codeclimate-2.0.0.tgz","_integrity":"sha512-Xg/5QWF5o/BijQvZzOFojzxQkWoKQIZatGSEx9pfOkdrcx8ovh+J1N+IvwK210jrj8+yRvFGDJLWV8oEQP3T6A==","repository":{"url":"git+https://github.com/remcohaszing/eslint-formatter-codeclimate.git","type":"git"},"_npmVersion":"11.6.2","description":"Format ESLint results as a Code Climate report","directories":{},"sideEffects":false,"_nodeVersion":"24.11.1","dependencies":{"codeclimate-types":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","typescript":"^5.0.0","snapshot-fixtures":"^1.0.0","@remcohaszing/eslint":"^12.0.0","remark-preset-remcohaszing":"^3.0.0"},"peerDependencies":{"eslint":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-formatter-codeclimate_2.0.0_1764324087007_0.30360990643888797","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"eslint-formatter-codeclimate","version":"2.0.1","description":"Format ESLint results as a Code Climate report","keywords":["codeclimate","eslint","eslint-formatter","eslintformatter"],"homepage":"https://github.com/remcohaszing/eslint-formatter-codeclimate#readme","bugs":{"url":"https://github.com/remcohaszing/eslint-formatter-codeclimate/issues"},"repository":{"type":"git","url":"git+https://github.com/remcohaszing/eslint-formatter-codeclimate.git"},"funding":"https://github.com/sponsors/remcohaszing","license":"MIT","author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"sideEffects":false,"type":"module","exports":{"types":"./types/eslint-formatter-codeclimate.d.ts","default":"./lib/eslint-formatter-codeclimate.js"},"scripts":{"prepack":"tsc --build","test":"c8 node --test"},"dependencies":{"codeclimate-types":"^0.3.0"},"peerDependencies":{"eslint":">=9"},"devDependencies":{"@remcohaszing/eslint":"^13.0.0","c8":"^10.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","remark-preset-remcohaszing":"^3.0.0","snapshot-fixtures":"^1.0.0","typescript":"^5.0.0"},"_id":"eslint-formatter-codeclimate@2.0.1","_integrity":"sha512-rAnC+0sjSE9FfRRH/rdm/d5YHcC2rDhOjyIyqSJX0JjRGzp8ERxCC6DnzgZkd13y4jFNh76XuKkaZXf+nN2tuw==","_resolved":"/home/runner/work/eslint-formatter-codeclimate/eslint-formatter-codeclimate/eslint-formatter-codeclimate-2.0.1.tgz","_from":"file:eslint-formatter-codeclimate-2.0.1.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-rAnC+0sjSE9FfRRH/rdm/d5YHcC2rDhOjyIyqSJX0JjRGzp8ERxCC6DnzgZkd13y4jFNh76XuKkaZXf+nN2tuw==","shasum":"58199f1786137f36bf80ee9c6503131c99cc0d33","tarball":"https://registry.npmjs.org/eslint-formatter-codeclimate/-/eslint-formatter-codeclimate-2.0.1.tgz","fileCount":6,"unpackedSize":9847,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/eslint-formatter-codeclimate@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEN446Z1z3gZ6y0aNGDXJjJSaez5sTrJ2LRQCaP6Qf4BAiEA36Q2APagQmo/2ZeEqZTHFOvZ3bUpnet1kchnejhRLi8="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c898f81c-5ee9-42f6-8057-a834c4bfe889"}},"directories":{},"maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-formatter-codeclimate_2.0.1_1771404616079_0.4244244539593307"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-08T08:40:46.092Z","modified":"2026-02-18T08:50:16.516Z","1.0.0":"2025-06-08T08:40:46.247Z","1.0.1":"2025-06-08T08:45:38.762Z","1.0.2":"2025-06-08T08:49:26.027Z","2.0.0":"2025-11-28T10:01:27.285Z","2.0.1":"2026-02-18T08:50:16.248Z"},"bugs":{"url":"https://github.com/remcohaszing/eslint-formatter-codeclimate/issues"},"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","homepage":"https://github.com/remcohaszing/eslint-formatter-codeclimate#readme","keywords":["codeclimate","eslint","eslint-formatter","eslintformatter"],"repository":{"type":"git","url":"git+https://github.com/remcohaszing/eslint-formatter-codeclimate.git"},"description":"Format ESLint results as a Code Climate report","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"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<string, Rule.RuleMetaData>`) — 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","readmeFilename":"README.md"}