{"id":36895631,"url":"https://github.com/livechat/eslint-plugin","last_synced_at":"2026-01-12T15:41:53.360Z","repository":{"id":53121265,"uuid":"521264315","full_name":"livechat/eslint-plugin","owner":"livechat","description":"Linting rules for TypeScript ESLint","archived":false,"fork":false,"pushed_at":"2025-12-19T09:39:18.000Z","size":273,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-22T03:00:18.073Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/livechat.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":"2022-08-04T12:49:00.000Z","updated_at":"2025-12-19T09:38:58.000Z","dependencies_parsed_at":"2024-04-22T04:35:45.354Z","dependency_job_id":"329b1eed-3cc2-43a1-b254-bdfa651336f6","html_url":"https://github.com/livechat/eslint-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/livechat/eslint-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livechat%2Feslint-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livechat%2Feslint-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livechat%2Feslint-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livechat%2Feslint-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/livechat","download_url":"https://codeload.github.com/livechat/eslint-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/livechat%2Feslint-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28341360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-12T15:41:53.211Z","updated_at":"2026-01-12T15:41:53.343Z","avatar_url":"https://github.com/livechat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Liniting rules plugin for TypeScript ESLint by LiveChat\n\nA package of linting rules used in TypeScript ESLint.\n\n## Quick-start\n\n\n### Installation\n\n```bash\n$ npm i --save-dev @livechat/eslint-plugin\n```\n\n\n### Usage example\n\n```json\n{\n  \"plugins\": [\"@livechat\"],\n  \"rules\": {\n    \"@livechat/no-declare\": \"error\"\n  }\n}\n```\n\n\n## Linting rules list\n\n| Name                                                           | Description                                   |\n| -------------------------------------------------------------- | --------------------------------------------- |\n| [`@livechat/no-declare`](#no-declare)                          | Forbids using 'declare' keyword               |\n\n\n## no-declare\n\nUsing 'declare' keyword may be forbidden for all or selected identifiers. You can use it for example to force another methods of declaring global variables, e.g. using 'import' forms.\n\n\n### Options\n\n```ts\ntype Options = {\n  onlyIdentifiers?: string[];\n  excludeIdentifiers?: string[];\n};\n\nconst defaultOptions: Options = {\n  onlyIdentifiers: [];\n  excludeIdentifiers: [];\n};\n```\n\nThe rule accepts options with the following properties:\n\n- `onlyIdentifiers` (optional) - If used, only the provided identifiers will be reported. All other identifiers declared with `declare` keyword will be ignored.\n- `excludeIdentifiers` (optional) - If used, all identifiers will be reported except those provided in the array. If `onlyIdentifiers` is used, this option is ignored.\n\n\n### default options\n\nDon't use 'declare' keyword.\n\n\u003c!--tabs--\u003e\n\n#### ❌ Incorrect\n\n```ts\ndeclare const someConst: any;\ndeclare const window: { location };\ndeclare const x, y, z: number;\n```\n\n#### ✅ Correct\n\n```ts\nimport someConst from 'some-lib';\nimport { window } from 'utils/global-declarations';\nconst { x, y, z } = window;\n```\n\n\n### onlyIdentifiers\n\nDon't use 'declare' keyword for the provided identifiers.\n\n```json\n{\n  \"@livechat/no-declare\": [ \"error\", { \"onlyIdentifiers\": [ \"window\" ] } ]\n}\n```\n\n\u003c!--tabs--\u003e\n\n#### ❌ Incorrect\n\n```ts\ndeclare const window: any;\ndeclare const window: { location };\n```\n\n#### ✅ Correct\n\n```ts\nimport { window } from 'utils/global-declarations';\ndeclare const someConst: any;\ndeclare const x, y, z: number;\n```\n\n\n### excludeIdentifiers\n\nDon't use 'declare' keyword except for the provided identifiers. If `onlyIdentifiers` is used, this option is ignored.\n\n```json\n{\n  \"@livechat/no-declare\": [ \"error\", { \"excludeIdentifiers\": [ \"someConst\" ] } ]\n}\n```\n\n\u003c!--tabs--\u003e\n\n#### ❌ Incorrect\n\n```ts\ndeclare const window: any;\ndeclare const x, y, z: number;\n```\n\n#### ✅ Correct\n\n```ts\nimport { window } from 'utils/global-declarations';\ndeclare const someConst: any;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flivechat%2Feslint-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flivechat%2Feslint-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flivechat%2Feslint-plugin/lists"}