{"id":20098290,"url":"https://github.com/zemd/tsconfig","last_synced_at":"2026-02-27T11:02:00.001Z","repository":{"id":139437912,"uuid":"524742820","full_name":"zemd/tsconfig","owner":"zemd","description":"Default tsconfig files","archived":false,"fork":false,"pushed_at":"2026-01-17T18:49:19.000Z","size":238,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-18T04:51:43.147Z","etag":null,"topics":["tsconfig","typescript"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zemd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-08-14T17:57:32.000Z","updated_at":"2026-01-17T18:49:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"8784e3cd-0d99-4176-940f-5227efd750b6","html_url":"https://github.com/zemd/tsconfig","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/zemd/tsconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemd%2Ftsconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemd%2Ftsconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemd%2Ftsconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemd%2Ftsconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemd","download_url":"https://codeload.github.com/zemd/tsconfig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemd%2Ftsconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29892063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T09:48:51.284Z","status":"ssl_error","status_checked_at":"2026-02-27T09:48:43.992Z","response_time":57,"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":["tsconfig","typescript"],"created_at":"2024-11-13T17:02:38.837Z","updated_at":"2026-02-27T11:01:59.962Z","avatar_url":"https://github.com/zemd.png","language":null,"funding_links":["https://www.patreon.com/red_rabbit"],"categories":[],"sub_categories":[],"readme":"# Default tsconfigs\n\n[![npm](https://img.shields.io/npm/v/@zemd/tsconfig?color=0000ff\u0026label=npm\u0026labelColor=000)](https://npmjs.com/package/@zemd/tsconfig)\n\n- React component library\n- Next.js site\n\n## Usage\n\n### Installation\n\n```sh\nnpm install @zemd/tsconfig --save-dev\n```\n\n### React component library\n\n```json\n{\n  \"$schema\": \"https://json.schemastore.org/tsconfig\",\n  \"display\": \"My cool react library\",\n  \"extends\": \"@zemd/tsconfig/tsconfig-react.json\"\n}\n```\n\n### Next.js project\n\n```json\n{\n  \"$schema\": \"https://json.schemastore.org/tsconfig\",\n  \"display\": \"My cool app configuration\",\n  \"extends\": \"@zemd/tsconfig/tsconfig-next.json\"\n}\n```\n\n### Warning\n\nAlso, you have to set `compilerOptions.outDir`, `compilerOptions.rootDir`, and `compilerOptions.baseUrl` options explicitly, so it would be clear about target destinations. And keep in mind that `compilerOptions.outDir` is considered a relative path in Typescript, it must be defined within your tsconfig.\n\n## Next.js and Emotion.sh integration\n\nIt is not limited by Emotion itself but showed up precisely when I was configuring it. Once you extend `tsconfnig-next.json`, a `css` attribute can't be used and the typechecker throws an error. You can fix it by adding `next-env.d.ts` into the `include` array:\n\n```\n\"include\": [\n  \"next-env.d.ts\",\n  \"**/*.ts\",\n  \"**/*.tsx\"\n]\n```\n\nThat means that `includes` field is also considered as relative paths in typescript.\n\n## License\n\n@zemd/tsconfig is released under the MIT license.\n\n## Donate\n\n[![](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://www.patreon.com/red_rabbit)\n[![](https://img.shields.io/static/v1?label=UNITED24\u0026message=support%20Ukraine\u0026color=blue)](https://u24.gov.ua/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemd%2Ftsconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemd%2Ftsconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemd%2Ftsconfig/lists"}