{"_id":"hapi-for-you","_rev":"300484","name":"hapi-for-you","description":"hapi style guide ESLint rule dealing with for loops","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"}],"time":{"modified":"2021-06-03T19:05:33.000Z","created":"2015-11-12T02:58:29.555Z","1.0.0":"2015-11-12T02:58:29.555Z"},"users":{},"author":{"name":"Continuation Labs","email":"contact@continuation.io","url":"http://continuation.io/"},"repository":{"type":"git","url":"https://github.com/continuationlabs/hapi-for-you.git"},"versions":{"1.0.0":{"name":"hapi-for-you","version":"1.0.0","description":"hapi style guide ESLint rule dealing with for loops","author":{"name":"Continuation Labs","email":"contact@continuation.io","url":"http://continuation.io/"},"main":"lib/index.js","scripts":{"test":"belly-button && lab -v -t 100 -a code"},"repository":{"type":"git","url":"https://github.com/continuationlabs/hapi-for-you.git"},"keywords":["eslint","rule","for","loop","for loop"],"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/hapi-for-you/issues"},"homepage":"https://github.com/continuationlabs/hapi-for-you","devDependencies":{"belly-button":"1.x.x","code":"1.x.x","eslint":"1.x.x","lab":"6.x.x"},"gitHead":"e009a2001b04383d0f1bf61e5a43b6c60b86c155","_id":"hapi-for-you@1.0.0","_shasum":"d362fbee8d7bda9c2c7801e207e5a5cd1a0b6a7b","_from":".","_npmVersion":"3.3.12","_nodeVersion":"6.0.0-pre","_npmUser":{"name":"cjihrig","email":"cjihrig@gmail.com"},"dist":{"shasum":"d362fbee8d7bda9c2c7801e207e5a5cd1a0b6a7b","size":3661,"noattachment":false,"key":"/hapi-for-you/-/hapi-for-you-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hapi-for-you/download/hapi-for-you-1.0.0.tgz"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"}],"directories":{},"publish_time":1447297109555,"_cnpm_publish_time":1447297109555,"_hasShrinkwrap":false,"deprecated":"This module has moved and is now available at @hapi/rule-for-loop. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues."}},"readme":"# hapi-for-you\n\n[![Current Version](https://img.shields.io/npm/v/hapi-for-you.svg)](https://www.npmjs.org/package/hapi-for-you)\n[![Build Status via Travis CI](https://travis-ci.org/continuationlabs/hapi-for-you.svg?branch=master)](https://travis-ci.org/continuationlabs/hapi-for-you)\n![Dependencies](http://img.shields.io/david/continuationlabs/hapi-for-you.svg)\n\nhapi style guide ESLint rule dealing with for loops. This rule enforces the following:\n\n- Restrict iterator variable names. `for` loop iterator variables should be named `i`. Nested loops should use the variables `j`, `k`, and so on.\n- Restrict loop nesting.  You can restrict the maximum nesting of `for` loops. By default, this limit is three.\n- Prevent postfix increment and decrement operators. The hapi style guide does not allow postfix increment and decrement operators in `for` loop updates. The prefix version of these operators should be used instead.\n- Single variable declaration in initialization section. A single `var i = 0;` is allowed in the initialization section. This only applies to variable declarations, not assignments to existing variables. This means that `for (i = 0, j = 0)` is allowed if `i` and `j` are existing variables. Variable declarations involving destructuring are not allowed.\n\n## Rule options\n\nThis rule can be configured by providing a single options object. The object supports the following keys.\n\n### `maxDepth`\n\nA number representing the maximum allowed nesting of `for` loops. Defaults to three.\n\n### `startIterator`\n\nThe first variable iterator name to use. This defaults to `'i'`.\n","_attachments":{},"homepage":"https://github.com/continuationlabs/hapi-for-you","bugs":{"url":"https://github.com/continuationlabs/hapi-for-you/issues"},"license":"MIT"}