{"id":25898534,"url":"https://github.com/miguelripoll23/explicit-boolean-comparison-plugin","last_synced_at":"2026-04-12T23:02:17.759Z","repository":{"id":280137498,"uuid":"941088600","full_name":"MiguelRipoll23/explicit-boolean-comparison-plugin","owner":"MiguelRipoll23","description":"A Deno lint plugin that enforces explicit boolean comparisons","archived":false,"fork":false,"pushed_at":"2025-03-01T14:15:51.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T14:26:54.152Z","etag":null,"topics":["deno","lint","plugin"],"latest_commit_sha":null,"homepage":"https://jsr.io/@miguelripoll23/explicit-boolean-comparison-plugin","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/MiguelRipoll23.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}},"created_at":"2025-03-01T13:10:21.000Z","updated_at":"2025-03-01T14:15:55.000Z","dependencies_parsed_at":"2025-03-01T14:37:04.272Z","dependency_job_id":null,"html_url":"https://github.com/MiguelRipoll23/explicit-boolean-comparison-plugin","commit_stats":null,"previous_names":["miguelripoll23/explicit-boolean-comparison-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiguelRipoll23%2Fexplicit-boolean-comparison-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiguelRipoll23%2Fexplicit-boolean-comparison-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiguelRipoll23%2Fexplicit-boolean-comparison-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MiguelRipoll23%2Fexplicit-boolean-comparison-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MiguelRipoll23","download_url":"https://codeload.github.com/MiguelRipoll23/explicit-boolean-comparison-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587802,"owners_count":19986628,"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","lint","plugin"],"created_at":"2025-03-03T00:20:01.494Z","updated_at":"2026-04-12T23:02:17.667Z","avatar_url":"https://github.com/MiguelRipoll23.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# explicit-boolean-comparison-plugin\n\nA Deno lint plugin that enforces explicit boolean comparisons by disallowing the\nuse of the ! shorthand for boolean negation. This rule helps improve code\nreadability by requiring an explicit comparison (e.g., variable === false) in\nconditional statements.\n\n\u003e [!NOTE]\n\u003e If it were up to me, I’d launch a strike to wipe out the ! shorthand that\n\u003e turns code into unreadable chaos. But until I can secure the necessary\n\u003e military funding, here’s a lint plugin as a peace offering.\n\n## Example\n\n```js\nif (!flag) { // ⚠️ Avoid using '!' shorthand for boolean negation to improve readability. Use an explicit comparison instead (e.g., flag === false).\n  console.log(\"Flag is false\");\n}\n```\n\n## Usage\n\nAdd the following block to your `deno.json` file:\n\n```json\n{\n  \"lint\": {\n    \"plugins\": [\n      \"jsr:@miguelripoll23/explicit-boolean-comparison-plugin\"\n    ]\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguelripoll23%2Fexplicit-boolean-comparison-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiguelripoll23%2Fexplicit-boolean-comparison-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguelripoll23%2Fexplicit-boolean-comparison-plugin/lists"}