{"id":35474683,"url":"https://github.com/rstackjs/rsbuild-plugin-arethetypeswrong","last_synced_at":"2026-04-02T18:05:22.767Z","repository":{"id":309143598,"uuid":"1035281235","full_name":"rstackjs/rsbuild-plugin-arethetypeswrong","owner":"rstackjs","description":"Run `arethetypeswrong` to lint npm packages after the build.","archived":false,"fork":false,"pushed_at":"2025-11-23T09:11:34.000Z","size":105,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-31T20:14:17.480Z","etag":null,"topics":["rsbuild","rslib","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/rstackjs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-10T03:49:39.000Z","updated_at":"2025-08-18T06:15:58.000Z","dependencies_parsed_at":"2025-08-14T23:48:12.629Z","dependency_job_id":null,"html_url":"https://github.com/rstackjs/rsbuild-plugin-arethetypeswrong","commit_stats":null,"previous_names":["colinaaa/rsbuild-plugin-arethetypeswrong","rspack-contrib/rsbuild-plugin-arethetypeswrong"],"tags_count":1,"template":false,"template_full_name":"rstackjs/rsbuild-plugin-template","purl":"pkg:github/rstackjs/rsbuild-plugin-arethetypeswrong","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-arethetypeswrong","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-arethetypeswrong/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-arethetypeswrong/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-arethetypeswrong/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstackjs","download_url":"https://codeload.github.com/rstackjs/rsbuild-plugin-arethetypeswrong/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstackjs%2Frsbuild-plugin-arethetypeswrong/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"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":["rsbuild","rslib","typescript"],"created_at":"2026-01-03T12:00:40.056Z","updated_at":"2026-01-16T04:02:13.393Z","avatar_url":"https://github.com/rstackjs.png","language":"TypeScript","readme":"# rsbuild-plugin-arethetypeswrong\n\nRsbuild plugin for checking TypeScript type definitions with [arethetypeswrong](https://github.com/arethetypeswrong/arethetypeswrong.github.io).\n\n\u003cp\u003e\n  \u003ca href=\"https://npmjs.com/package/rsbuild-plugin-arethetypeswrong\"\u003e\n   \u003cimg src=\"https://img.shields.io/npm/v/rsbuild-plugin-arethetypeswrong?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"license\" /\u003e\n  \u003ca href=\"https://npmcharts.com/compare/rsbuild-plugin-arethetypeswrong?minimal=true\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/rsbuild-plugin-arethetypeswrong.svg?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"downloads\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n`rsbuild-plugin-arethetypeswrong` is the perfect partner for [Rslib](https://github.com/web-infra-dev/rslib). When building a library, arethetypeswrong helps you to analyze TypeScript types of the package to improve its compatibility with different module resolutions.\n\n\u003cimg width=\"1000\" height=\"761\" alt=\"image\" src=\"https://github.com/user-attachments/assets/cce68a0d-baac-45c5-8b59-9e7999932e1c\" /\u003e\n\n## Usage\n\nInstall:\n\n```bash\nnpm add rsbuild-plugin-arethetypeswrong -D\n```\n\nAdd plugin to your `rslib.config.ts` or `rsbuild.config.ts`:\n\n```ts\nimport { pluginAreTheTypesWrong } from \"rsbuild-plugin-arethetypeswrong\";\n\nexport default {\n  plugins: [pluginAreTheTypesWrong()],\n};\n```\n\n## Options\n\n### enable\n\nWhether to enable arethetypeswrong.\n\n- Type: `boolean`\n- Default: `true`\n\nFor example, only run arethetypeswrong in the CI environment:\n\n```ts\npluginAreTheTypesWrong({\n  enable: Boolean(process.env.CI),\n});\n```\n\n### areTheTypesWrongOptions\n\nOptions for arethetypeswrong. See [arethetypeswrong - Configuration](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/packages/cli/README.md#configuration) for more details.\n\n- Type:\n\n```ts\ninterface areTheTypesWrongOptions {\n  ignoreRules?: ProblemFlag[];\n  ignoreResolutions?: ResolutionKind[];\n  summary?: boolean;\n  emoji?: boolean;\n}\n\ntype ProblemFlag =\n  | \"no-resolution\"\n  | \"untyped-resolution\"\n  | \"false-cjs\"\n  | \"false-esm\"\n  | \"cjs-resolves-to-esm\"\n  | \"fallback-condition\"\n  | \"cjs-only-exports-default\"\n  | \"named-exports\"\n  | \"false-export-default\"\n  | \"missing-export-equals\"\n  | \"unexpected-module-syntax\"\n  | \"internal-resolution-error\";\n\ntype ResolutionKind = \"node10\" | \"node16-cjs\" | \"node16-esm\" | \"bundler\";\n```\n\n- Default:\n\n```js\nconst defaultOptions = {\n  ignoreRules: [];\n  ignoreResolutions: [];\n  summary: true;\n  emoji: true;\n};\n```\n\n- Example:\n\n```js\npluginAreTheTypesWrong({\n  areTheTypesWrongOptions: {\n    ignoreRules: [\"false-cjs\"],\n    ignoreResolutions: [\"node16-cjs\"],\n  },\n});\n```\n\n## Credits\n\nThanks to:\n\n- [arethetypeswrong](https://github.com/arethetypeswrong/arethetypeswrong.github.io) for making this possible.\n- [rsbuild-plugin-publint](https://github.com/rspack-contrib/rsbuild-plugin-publint) for the idea of linting as an Rsbuild plugin.\n\n## License\n\n[MIT](./LICENSE).\n","funding_links":[],"categories":["Plugins"],"sub_categories":["Rsbuild Plugins"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstackjs%2Frsbuild-plugin-arethetypeswrong","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstackjs%2Frsbuild-plugin-arethetypeswrong","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstackjs%2Frsbuild-plugin-arethetypeswrong/lists"}