{"id":15466980,"url":"https://github.com/lukahartwig/eslint-baseline","last_synced_at":"2025-05-07T14:47:42.656Z","repository":{"id":62657531,"uuid":"560163597","full_name":"lukahartwig/eslint-baseline","owner":"lukahartwig","description":"Run ESLint with a baseline.","archived":false,"fork":false,"pushed_at":"2023-10-07T22:15:18.000Z","size":202,"stargazers_count":12,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-26T17:03:07.127Z","etag":null,"topics":["baseline","codequality","continuous-integration","eslint","javascript","linter"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/lukahartwig.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-10-31T21:46:13.000Z","updated_at":"2025-03-16T18:49:55.000Z","dependencies_parsed_at":"2024-10-23T23:09:40.530Z","dependency_job_id":"ddfa2df3-7aaf-4148-bc32-0ec07fb6c1f6","html_url":"https://github.com/lukahartwig/eslint-baseline","commit_stats":{"total_commits":35,"total_committers":2,"mean_commits":17.5,"dds":"0.11428571428571432","last_synced_commit":"7262481e403763508cfe8d66311086c8da26f515"},"previous_names":["lukahartwig/eslint-overlook"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukahartwig%2Feslint-baseline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukahartwig%2Feslint-baseline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukahartwig%2Feslint-baseline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukahartwig%2Feslint-baseline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukahartwig","download_url":"https://codeload.github.com/lukahartwig/eslint-baseline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252899096,"owners_count":21821721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["baseline","codequality","continuous-integration","eslint","javascript","linter"],"created_at":"2024-10-02T01:16:45.734Z","updated_at":"2025-05-07T14:47:42.601Z","avatar_url":"https://github.com/lukahartwig.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-baseline\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/lukahartwig/eslint-baseline/blob/main/LICENSE)\n[![npm version](https://img.shields.io/npm/v/eslint-baseline.svg?style=flat)](https://www.npmjs.com/package/eslint-baseline)\n\nTrying to add a linter to a legacy project can be tough. eslint-baseline lets you ignore all existing errors by creating a baseline.\n\n## Project Status\n\nThis project is still in early development. It is usable but non of the APIs are stable yet.\n\n## Getting Started\n\nInstall eslint-baseline\n\n```sh\nnpm install --save-dev eslint eslint-baseline\n```\n\nIf you already have ESlint setup update the lint scripts in `package.json`\n\n```diff\n{\n  \"scripts\": {\n-   \"lint\": \"eslint .\"\n+   \"lint\": \"eslint-baseline .\",\n+   \"lint:update-baseline\": \"eslint-baseline --update-baseline .\"\n  }\n}\n```\n\nRun the script to create a baseline\n\n```sh\nnpm run lint\n```\n\nThere should be a file `.eslint-baseline.json` that contains all current lint errors. Subsequent runs of `npm run lint` will only show new errors.\n\nTo update the baseline run\n\n```sh\nnpm run lint:update-baseline\n```\n\n## Known limitations\n\n- The heuristic to detect already known errors is based on the location of the error. Editing a file with errors might move those errors to a different location and thus will show them as \"new\" in the output. As a workaround, you have to update the baseline.\n\n## Alternatives\n\nA list of similar projects\n\n- [@lint-todo/eslint-formatter-todo](https://www.npmjs.com/package/@lint-todo/eslint-formatter-todo)\n- [@luminateone/eslint-baseline](https://www.npmjs.com/package/@luminateone/eslint-baseline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukahartwig%2Feslint-baseline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukahartwig%2Feslint-baseline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukahartwig%2Feslint-baseline/lists"}