{"id":21948109,"url":"https://github.com/evolution-gaming/tsc-silent","last_synced_at":"2025-10-13T03:34:20.339Z","repository":{"id":43741560,"uuid":"156279950","full_name":"evolution-gaming/tsc-silent","owner":"evolution-gaming","description":"`tsc` with `--suppress` flag","archived":false,"fork":false,"pushed_at":"2022-02-20T14:08:19.000Z","size":52,"stargazers_count":85,"open_issues_count":12,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T12:04:44.373Z","etag":null,"topics":["tsc","typescript"],"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/evolution-gaming.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-05T20:39:57.000Z","updated_at":"2025-01-28T17:46:51.000Z","dependencies_parsed_at":"2022-08-22T10:01:14.335Z","dependency_job_id":null,"html_url":"https://github.com/evolution-gaming/tsc-silent","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Ftsc-silent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Ftsc-silent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Ftsc-silent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evolution-gaming%2Ftsc-silent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evolution-gaming","download_url":"https://codeload.github.com/evolution-gaming/tsc-silent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045245,"owners_count":21038554,"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":["tsc","typescript"],"created_at":"2024-11-29T05:12:01.444Z","updated_at":"2025-10-13T03:34:20.277Z","avatar_url":"https://github.com/evolution-gaming.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `tsc-silent`\n\nThe purpose of the wrapper is to execute TypeScript compiler but suppress some error messages\ncoming from certain files/folders. For example, this can be used to enable `noImplicitAny` in\nsome parts of the project while keeping it disabled in others.\n\n## Installing\n\n```bash\nnpm install -g tsc-silent\n```\n\n## Usage\n\n```\ntsc-silent --project \u003cpath\u003e [--suppress config | --suppressConfig path] [--compiler path] [--watch]\n```\n\n## Synopsis\n\n```\n--project, -p    Path to tsconfig.json\n\n--compiler       Path to typescript.js.\n                 By default, uses `./node_modules/typescript/lib/typescript.js`.\n\n--suppress       Suppressed erros.\n                 E.g. `--suppress 7017@src/js/ 2322,2339,2344@/src/legacy/`.\n\n--suppressConfig Path to supressed errors config.\n                 See documentation for examples.\n\n--watch, -w      Run in watch mode.\n\n--stats          Print number of suppressed errors per path and error code.\n```\n\n## Suppress config\n\nYou have to pass either `--suppress` or `--suppressConfig`.\n\n### `--suppress`\n\nLet's ignore error `7017` in `src/js/` directory and errors `2322, 2339, 2344` in `/src/legacy/`:\n\n```bash\ntsc-silent -p tsconfig.json --suppress 7017@/src/js/ 2322,2339,2344@/src/legacy/\n```\n\nor, ignore all errors in `/src/legacy/` folder\n\n```bash\ntsc-silent -p tsconfig.json --suppress @/src/legacy/\n```\n\nor, completely ignore all errors\n\n```bash\ntsc-silent -p tsconfig.json --suppress @\n```\n\n### `--suppressConfig`\n\n```bash\ntsc-silent -p tsconfig.json --suppressConfig tsc-silent.config.js\n```\n\nSee [example.config.js](./example.config.js).\n\n\n## Intended/typical use\n\nCheck out [the article](https://birukov.me/blog/all/tsc-silent.html) to see the intended use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Ftsc-silent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevolution-gaming%2Ftsc-silent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevolution-gaming%2Ftsc-silent/lists"}