{"maintainers":[{"email":"jonas.pauthier@gmail.com","name":"anonymous"},{"email":"devinivy@gmail.com","name":"anonymous"},{"email":"nicolas@morel.io","name":"anonymous"},{"email":"quitlahok@gmail.com","name":"anonymous"},{"email":"eran@hammer.io","name":"anonymous"}],"keywords":["eslint","rule","for","loop","for loop"],"dist-tags":{"latest":"1.0.0"},"author":{"name":"Continuation Labs","email":"contact@continuation.io","url":"http://continuation.io/"},"description":"hapi style guide ESLint rule dealing with for loops","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","repository":{"type":"git","url":"https://github.com/continuationlabs/hapi-for-you.git"},"bugs":{"url":"https://github.com/continuationlabs/hapi-for-you/issues"},"license":"MIT","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":"anonymous","email":"cjihrig@gmail.com"},"dist":{"shasum":"d362fbee8d7bda9c2c7801e207e5a5cd1a0b6a7b","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/hapi-for-you/-/hapi-for-you-1.0.0.tgz","integrity":"sha512-GgXImy7IBOMZ59H34oVb8UO0eDxtGzY5qWa28xUjHo7ET8Z00HuJ/Py6jZVYhfpUUJbr9ulYH+K5hJGqRAjz+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDP6zqf310vyzwM9Ub/1yUmHraEXaIt7nnwRZIXIhafMAiEA03f+osYbiTFuX8C13GvLAuxUAABEDHQ5hw32Hbg59G8="}]},"maintainers":[{"name":"anonymous","email":"cjihrig@gmail.com"}],"directories":{},"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."}},"name":"hapi-for-you","time":{"modified":"2023-12-01T08:26:32.118Z","created":"2015-11-12T02:58:29.555Z","1.0.0":"2015-11-12T02:58:29.555Z"},"readmeFilename":"README.md","homepage":"https://github.com/continuationlabs/hapi-for-you"}