{"id":26088945,"url":"https://github.com/armaanas/deno-lint-plugin-no-empty-function","last_synced_at":"2026-02-12T07:34:22.194Z","repository":{"id":279501376,"uuid":"939023084","full_name":"ArmaanAS/deno-lint-plugin-no-empty-function","owner":"ArmaanAS","description":"Deno lint plugin that disallows empty function bodies.","archived":false,"fork":false,"pushed_at":"2025-03-05T08:57:46.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T04:54:42.792Z","etag":null,"topics":["deno"],"latest_commit_sha":null,"homepage":"https://jsr.io/@armaanas/no-empty-function","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/ArmaanAS.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-25T21:41:40.000Z","updated_at":"2025-03-05T08:57:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2240d69d-ee8c-4180-b714-0cdde16dbe9b","html_url":"https://github.com/ArmaanAS/deno-lint-plugin-no-empty-function","commit_stats":null,"previous_names":["armaanas/deno-lint-plugin-no-empty-function"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmaanAS%2Fdeno-lint-plugin-no-empty-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmaanAS%2Fdeno-lint-plugin-no-empty-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmaanAS%2Fdeno-lint-plugin-no-empty-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArmaanAS%2Fdeno-lint-plugin-no-empty-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArmaanAS","download_url":"https://codeload.github.com/ArmaanAS/deno-lint-plugin-no-empty-function/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519472,"owners_count":21117757,"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":["deno"],"created_at":"2025-03-09T08:44:13.454Z","updated_at":"2026-02-12T07:34:22.161Z","avatar_url":"https://github.com/ArmaanAS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# no-empty-function-plugin\n\nA Deno lint plugin that disallows empty function bodies.\n\n## Rule Details\n\nThis rule flags any function declarations, function expressions, or arrow functions that have empty bodies. Empty function bodies often indicate incomplete implementations or dead code.\n\n## Installation\n\n```json\n// deno.json\n{\n  \"lint\": {\n    \"plugins\": [\"jsr:@armaanas/no-empty-function@0.3.0\"]\n  }\n}\n```\n\n## ❌ Invalid Examples\n\n```js\nfunction foo() {}\n\nconst bar = function* () {};\n\nconst baz = () =\u003e {};\n\nclass Example {\n  constructor() {}\n\n  foo() {}\n}\n```\n\n```txt\nerror[no-empty-function-rule/no-empty-function]: Empty function body\n --\u003e /home/user/deno/lint/example.ts:1:16\n  |\n1 | function foo() {}\n  |                ^^\n  = hint: Add code or comment to the empty function body\n```\n\n## ✅ Valid Examples\n\n```js\nfunction foo() {\n  return true;\n}\n\nconst bar = function () {\n  return \"node\".split(\"\").sort().join(\"\");\n};\n\nconst baz = () =\u003e 42;\n\nclass Example {\n  constructor() {\n    this.foo = 3.14;\n  }\n}\n\nfunction foo1() {\n  /* no-op */\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmaanas%2Fdeno-lint-plugin-no-empty-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmaanas%2Fdeno-lint-plugin-no-empty-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmaanas%2Fdeno-lint-plugin-no-empty-function/lists"}