{"id":35024910,"url":"https://github.com/narumincho/type-lint","last_synced_at":"2026-05-21T11:33:27.867Z","repository":{"id":329060718,"uuid":"1117949247","full_name":"narumincho/type-lint","owner":"narumincho","description":"Deno lint plugin for TypeScript types","archived":false,"fork":false,"pushed_at":"2025-12-17T08:25:09.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-20T17:48:02.779Z","etag":null,"topics":[],"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/narumincho.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T03:45:08.000Z","updated_at":"2025-12-17T08:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/narumincho/type-lint","commit_stats":null,"previous_names":["narumincho/deno-type-lint"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/narumincho/type-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Ftype-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Ftype-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Ftype-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Ftype-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narumincho","download_url":"https://codeload.github.com/narumincho/type-lint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Ftype-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28073955,"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","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-12-27T06:15:43.182Z","updated_at":"2025-12-27T06:15:43.885Z","avatar_url":"https://github.com/narumincho.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-type-lint\n\nDeno lint plugin for TypeScript types.\n\n[![jsr:@narumincho/type-lint](https://jsr.io/badges/@narumincho/type-lint)](https://jsr.io/@narumincho/type-lint)\n\n日本語の記事: https://zenn.dev/narumincho/articles/deno-lint-plugin\n\n## Description\n\nThis plugin enforces stricter TypeScript type annotations by replacing shorthand array types with their explicit forms. This helps improve type safety and consistency in your codebase.\n\n## Usage\n\nAdd the plugin to your `deno.json`:\n\n```json\n{\n  \"lint\": {\n    \"plugins\": [\"jsr:@narumincho/type-lint\"]\n  }\n}\n```\n\n## Rules\n\n### type-lint/no-array-shorthand\n\nThis rule replaces shorthand array type annotations with explicit `Array\u003cT\u003e` and `ReadonlyArray\u003cT\u003e` types.\n\n#### Examples\n\n**Before:**\n\n```ts\nfunction removeEmptyStringInArray(array: readonly string[]): string[] {\n  return array.filter((item) =\u003e item !== \"\");\n}\n```\n\n**After:**\n\n```ts\nfunction removeEmptyStringInArray(array: ReadonlyArray\u003cstring\u003e): Array\u003cstring\u003e {\n  return array.filter((item) =\u003e item !== \"\");\n}\n```\n\nThis rule applies to:\n\n- `T[]` → `Array\u003cT\u003e`\n- `readonly T[]` → `ReadonlyArray\u003cT\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarumincho%2Ftype-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarumincho%2Ftype-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarumincho%2Ftype-lint/lists"}