{"id":15857322,"url":"https://github.com/timmikeladze/tsc-baseline","last_synced_at":"2025-09-20T10:31:56.935Z","repository":{"id":190337625,"uuid":"681871959","full_name":"TimMikeladze/tsc-baseline","owner":"TimMikeladze","description":"🌡️ Creates a baseline of TypeScript errors and compares new errors against it. This is useful for reducing noise in TypeScript projects which have a lot of pre-existing errors. This tool will filter out all existing errors and only show new type-errors introduced by your changes.","archived":false,"fork":false,"pushed_at":"2024-06-10T20:21:50.000Z","size":114,"stargazers_count":4,"open_issues_count":20,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-13T10:41:21.718Z","etag":null,"topics":["baseline","errors","tsc","tsc-baseline","typescript","typescript-baseline"],"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/TimMikeladze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"linesofcodedev","custom":["https://www.paypal.me/TimMikeladze"]}},"created_at":"2023-08-23T00:19:11.000Z","updated_at":"2024-06-16T09:27:00.664Z","dependencies_parsed_at":"2024-01-02T06:24:21.239Z","dependency_job_id":"314e3fbd-9c0b-421b-99e0-cc3f7a4596d9","html_url":"https://github.com/TimMikeladze/tsc-baseline","commit_stats":null,"previous_names":["timmikeladze/tsc-baseline"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Ftsc-baseline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Ftsc-baseline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Ftsc-baseline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimMikeladze%2Ftsc-baseline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimMikeladze","download_url":"https://codeload.github.com/TimMikeladze/tsc-baseline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233652737,"owners_count":18708990,"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","errors","tsc","tsc-baseline","typescript","typescript-baseline"],"created_at":"2024-10-05T20:22:16.315Z","updated_at":"2025-09-20T10:31:56.401Z","avatar_url":"https://github.com/TimMikeladze.png","language":"TypeScript","funding_links":["https://ko-fi.com/linesofcodedev","https://www.paypal.me/TimMikeladze"],"categories":[],"sub_categories":[],"readme":"# 🌡️ tsc-baseline\n\nOften times when working on a large codebase or joining a new project, you'll be faced with a lot pre-existing type errors. While it's important to fix these errors, practically speaking, it's not realistic to fix them all at once and will likely be done incrementally over time.\n\n`tsc-baseline` helps you reduce the noise of pre-existing type errors by allowing you to save a baseline of errors and filter them out of future type-checks.\n\nThis is especially useful when you're working on a new feature branch and want to focus on the errors introduced by your changes, rather than the errors that were already present in the codebase.\n\n\u003e 👋 Hello there! Follow me [@linesofcode](https://twitter.com/linesofcode) or visit [linesofcode.dev](https://linesofcode.dev) for more cool projects like this one.\n\n## 📡 Install\n\n```console\nnpm install tsc-baseline\n\nyarn add tsc-baseline\n\npnpm add tsc-baseline\n```\n\n## 🚀 Getting Started\n\nFirst, run a type-check in a project containing errors and save the results to a file. We refer to this file as the baseline.\n\n```console\nyarn tsc | yarn tsc-baseline save\n```\n\nNext, make some changes to your codebase that introduce new errors, and run the type-check again. This time, we'll compare the results to the baseline and filter out pre-existing errors.\n\nRunning the following command will print out the new errors to the console.\n\n```console\nyarn tsc | yarn tsc-baseline check\n```\n\nIf you need to explicitly add an error to the baseline, you can do so by copying the error's hash from the console output and running the following command.\n\n```console\nyarn tsc-baseline add 1234\n```\n\nWhen you're done, you can delete the baseline file.\n\n```console\nyarn tsc-baseline clear\n```\n### Error Format Options\n\nYou can specify the error format to be used when checking for new errors with the `check` command. This option affects the output to `stderr`. By default, the standard error message format is used. However, if you want the output in a GitLab-friendly format, you can use the `--error-format` option:\n\n- **Default Format (`human`):** Shows standard human-readable error messages.\n- **GitLab Format (`gitlab`):** Outputs errors in a format suitable for GitLab pipelines, making it easier to process in CI/CD workflows.\n\nExample for GitLab format:\n\n```console\nyarn tsc | yarn tsc-baseline check --error-format gitlab\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimmikeladze%2Ftsc-baseline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimmikeladze%2Ftsc-baseline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimmikeladze%2Ftsc-baseline/lists"}