{"id":21861104,"url":"https://github.com/deecewan/eslint-plugin-only-var","last_synced_at":"2026-05-15T21:33:01.659Z","repository":{"id":57230092,"uuid":"84392033","full_name":"deecewan/eslint-plugin-only-var","owner":"deecewan","description":"Enforce `var` usage","archived":false,"fork":false,"pushed_at":"2017-04-12T01:34:21.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T06:01:57.276Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deecewan.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}},"created_at":"2017-03-09T03:06:42.000Z","updated_at":"2017-08-29T12:45:25.000Z","dependencies_parsed_at":"2022-09-14T15:02:33.738Z","dependency_job_id":null,"html_url":"https://github.com/deecewan/eslint-plugin-only-var","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/deecewan/eslint-plugin-only-var","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deecewan%2Feslint-plugin-only-var","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deecewan%2Feslint-plugin-only-var/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deecewan%2Feslint-plugin-only-var/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deecewan%2Feslint-plugin-only-var/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deecewan","download_url":"https://codeload.github.com/deecewan/eslint-plugin-only-var/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deecewan%2Feslint-plugin-only-var/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268362943,"owners_count":24238543,"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-08-02T02:00:12.353Z","response_time":74,"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":"2024-11-28T03:09:55.375Z","updated_at":"2026-05-15T21:32:56.638Z","avatar_url":"https://github.com/deecewan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-only-var\n\n\u003e Enforce `var` usage.\n\n## Why\n\nWhile we're in the process of upgrading the code base to newer versions of JS, we currently cannot use `const` or `let`.  Sometimes we get confused and do it anyways.  This will stop that.\n\n## Usage\n\n```\nyarn add -D eslint-plugin-only-var\n```\n\n```js\n// .eslintrc\n{\n  // ...\n  \"plugins\": [\n    \"only-var\"\n  ],\n  \"rules\": {\n    \"only-var/only-var\": \"error\"\n  }\n}\n```\n\nIf you want to ignore certain files, you can specify their extensions like so:\n\n```js\n// .eslintrc\n{\n  // ...\n  \"plugins\": [\n    \"only-var\"\n  ],\n  \"rules\": {\n    \"only-var/only-var\": [\"error\", { \"ignore\": [\".jsx\"] }]\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeecewan%2Feslint-plugin-only-var","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeecewan%2Feslint-plugin-only-var","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeecewan%2Feslint-plugin-only-var/lists"}