{"id":16764462,"url":"https://github.com/andykog/eslint-plugin-no-unused","last_synced_at":"2025-03-16T11:17:24.184Z","repository":{"id":63535144,"uuid":"568525180","full_name":"andykog/eslint-plugin-no-unused","owner":"andykog","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-26T13:25:20.000Z","size":187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T21:38:28.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/andykog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-20T19:51:57.000Z","updated_at":"2022-11-26T13:08:27.000Z","dependencies_parsed_at":"2023-01-23T13:01:37.903Z","dependency_job_id":null,"html_url":"https://github.com/andykog/eslint-plugin-no-unused","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andykog%2Feslint-plugin-no-unused","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andykog%2Feslint-plugin-no-unused/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andykog%2Feslint-plugin-no-unused/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andykog%2Feslint-plugin-no-unused/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andykog","download_url":"https://codeload.github.com/andykog/eslint-plugin-no-unused/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858058,"owners_count":20359269,"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":[],"created_at":"2024-10-13T05:26:02.886Z","updated_at":"2025-03-16T11:17:24.161Z","avatar_url":"https://github.com/andykog.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-no-unused\n\n[experimental, in early stage of development]\n\nFinds unused TypeScript code with [no-unused](https://www.npmjs.com/package/no-unused).\n\n\n## Installation\n\nInstall `eslint-plugin-no-unused` \u0026 `@typescript-eslint/parser`:\n\n```sh\nnpm install eslint-plugin-no-unused --save-dev\nnpm install @typescript-eslint/parser --save-dev\n```\n\n\n## Usage\n\nMake sure `@typescript-eslint/parser` is configured in your `.eslintrc` configuration file,\nand has `parserOptions.project` property.\n```json\n{\n  \"parser\": \"@typescript-eslint/parser\",\n  \"parserOptions\": {\n    \"project\": \"./tsconfig.json\"\n  }\n}\n\n```\n\nAdd `eslint-plugin-no-unused` to the plugins section of your `.eslintrc` configuration file.\nYou can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\n    \"no-unused\"\n  ]\n}\n```\n\nThen configure the rule under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"no-unused/no-unused\": [\"warn\", {\n      \"ignore\": \"**/*.spec.ts\",\n      \"ignoreExports\": \"src/entrypoint.ts,src/**/*.otherEntrypoints.ts\"\n    }]\n  }\n}\n```\n\n\n## Options\n\n- `ignore` (glob pattern) - pattern for ignored files. These files won't be analyzed.\n  Hint: add `**/*.spec.ts` then identifiers that are used only in tests will be marked as unused.\n- `ignoreExports` (glob pattern) - pattern for files where exports are considered used.\n  Hint: add here entrypoints to your app as exports there are meant to be used by external code.\n\n\n## CLI tool\n\nSee [no-unused](https://www.npmjs.com/package/no-unused).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandykog%2Feslint-plugin-no-unused","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandykog%2Feslint-plugin-no-unused","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandykog%2Feslint-plugin-no-unused/lists"}