{"id":18532656,"url":"https://github.com/itwillwork/eslint-plugin-exports-control","last_synced_at":"2025-05-14T23:08:16.992Z","repository":{"id":156575826,"uuid":"633048738","full_name":"itwillwork/eslint-plugin-exports-control","owner":"itwillwork","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-26T17:27:33.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T18:13:46.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/itwillwork.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-26T17:08:31.000Z","updated_at":"2023-04-26T17:27:37.000Z","dependencies_parsed_at":"2023-05-14T09:00:24.679Z","dependency_job_id":null,"html_url":"https://github.com/itwillwork/eslint-plugin-exports-control","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"d56894e35adc947ff0d9f14e92836e95461b84cf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Feslint-plugin-exports-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Feslint-plugin-exports-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Feslint-plugin-exports-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itwillwork%2Feslint-plugin-exports-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itwillwork","download_url":"https://codeload.github.com/itwillwork/eslint-plugin-exports-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243363,"owners_count":22038046,"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-11-06T19:07:21.285Z","updated_at":"2025-05-14T23:08:11.983Z","avatar_url":"https://github.com/itwillwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-exports-control\n\nEslint plugin for linting exports\n\n## Installation\n\n```\nnpm i --save-dev eslint-plugin-exports-control\n```\n\n## Usage\n\nCreate an .eslint.json file with the following:\n\n```json\n\"plugins\": [\n    \"exports-control\"\n]\n```\n\nThen, you can add the custom rules to the .eslint.json file:\n\n```json\n\"rules\": {\n  \"exports-control/exports-control\": \"error\",\n}\n```\n\nTo lint your project with ESLint, add the following script to your package.json:\n\n```json\n{\n  \"scripts\": {\n    \"lint\": \"eslint .\"\n  }\n}\n```\n\nand run the linter with:\n\n```\nnpm run lint\n```\n\n## Rules\n\n#### exports-control/exports-control\n\nConfig example:\n\n```js\n\"exports-control/exports-control\": ['error', [{\n    paths: {\n      includes: ['endpoints/*'],\n      excludes: ['endpoints/models/*'],\n    },\n    patterns: ['EndpointT$'],\n    description: 'There is only endpoints models, with names end of ...EndpointT',\n  }]],\n```\n\nExamples of incorrect code for this rule:\n\n```js\n// in file \"endpoints/user.ts\"\nexport const CurrentUserT = ...\n// or\nexport { CurrentUserT }\n```\n\nExamples of correct code for this rule:\n\n```js\n// in file \"endpoints/user.ts\"\nexport const CurrentUserEndpointT = ...\n// or\nexport { CurrentUserEndpointT }\n\n// in file  \"endpoints/models/roles.ts\"\nexport enum RolesEnum { ... }\n// or\nexport { RolesEnum }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitwillwork%2Feslint-plugin-exports-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitwillwork%2Feslint-plugin-exports-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitwillwork%2Feslint-plugin-exports-control/lists"}