{"id":13801705,"url":"https://github.com/buildo/eslint-plugin-no-loops","last_synced_at":"2025-04-04T17:03:38.411Z","repository":{"id":38185028,"uuid":"49957552","full_name":"buildo/eslint-plugin-no-loops","owner":"buildo","description":"It's 2024 and you still use loops?","archived":false,"fork":false,"pushed_at":"2024-06-14T08:05:52.000Z","size":34,"stargazers_count":130,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T00:02:46.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/buildo.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}},"created_at":"2016-01-19T14:20:48.000Z","updated_at":"2025-02-24T11:51:41.000Z","dependencies_parsed_at":"2024-01-02T23:43:08.913Z","dependency_job_id":"5de341dc-b7fa-4b82-8467-3420fde04e4b","html_url":"https://github.com/buildo/eslint-plugin-no-loops","commit_stats":{"total_commits":24,"total_committers":7,"mean_commits":"3.4285714285714284","dds":"0.29166666666666663","last_synced_commit":"1a5904d121cce8dd3d8c9d5a5744c7d9c36120f6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-no-loops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-no-loops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-no-loops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildo%2Feslint-plugin-no-loops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildo","download_url":"https://codeload.github.com/buildo/eslint-plugin-no-loops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217174,"owners_count":20903008,"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-08-04T00:01:26.147Z","updated_at":"2025-04-04T17:03:38.392Z","avatar_url":"https://github.com/buildo.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Practices and Specific ES Features"],"readme":"# eslint-plugin-no-loops\nIt's 2024 and you still use loops?\n\n[![Build Status](https://travis-ci.org/buildo/eslint-plugin-no-loops.svg?branch=master)](https://travis-ci.org/buildo/eslint-plugin-no-loops)\n[![npm](https://img.shields.io/npm/v/eslint-plugin-no-loops.svg)](https://www.npmjs.com/package/eslint-plugin-no-loops)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgflip.com/1oa3kd.jpg\" title=\"made at imgflip.com\"/\u003e \n\u003c/p\u003e\n\n## Installation\n```sh\nnpm install --save-dev eslint-plugin-no-loops\n```\n\n## Usage\nIn your `.eslintrc`:\n\n```javascript\n{\n  \"plugins\": [\n    \"no-loops\"\n  ],\n  \"rules\": {\n    \"no-loops/no-loops\": 2\n  }\n}\n```\n\n## Rule\nDisallow use of loops (for, for-in, while, do-while, for-of).\n\n## Why\nYou [don't](http://www.codereadability.com/coding-without-loops/) [need](http://joelhooks.com/blog/2014/02/06/stop-writing-for-loops-start-using-underscorejs/) [them](http://www.sitepoint.com/quick-tip-stop-writing-loops-start-thinking-with-maps/).\n\n## I know better, I need one now\nIf 99% of your code doesn't need them, but you have that single case where a loop makes sense, go ahead!\n\n```javascript\n// eslint-disable-next-line no-loops/no-loops\nfor (let i = 0; i \u003c arr.length; i++) {\n  // ...\n}\n```\n\n What is a rule without its exceptions?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Feslint-plugin-no-loops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildo%2Feslint-plugin-no-loops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildo%2Feslint-plugin-no-loops/lists"}