{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/javascript/issues/1122","repository_url":"https://api.github.com/repos/airbnb/javascript","labels_url":"https://api.github.com/repos/airbnb/javascript/issues/1122/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/javascript/issues/1122/comments","events_url":"https://api.github.com/repos/airbnb/javascript/issues/1122/events","html_url":"https://github.com/airbnb/javascript/issues/1122","id":182674643,"number":1122,"title":"Disallow for-of","user":{"login":"aboyton","id":7865563,"avatar_url":"https://avatars.githubusercontent.com/u/7865563?v=3","gravatar_id":"","url":"https://api.github.com/users/aboyton","html_url":"https://github.com/aboyton","followers_url":"https://api.github.com/users/aboyton/followers","following_url":"https://api.github.com/users/aboyton/following{/other_user}","gists_url":"https://api.github.com/users/aboyton/gists{/gist_id}","starred_url":"https://api.github.com/users/aboyton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboyton/subscriptions","organizations_url":"https://api.github.com/users/aboyton/orgs","repos_url":"https://api.github.com/users/aboyton/repos","events_url":"https://api.github.com/users/aboyton/events{/privacy}","received_events_url":"https://api.github.com/users/aboyton/received_events","type":"User","site_admin":false},"labels":[{"id":303239021,"url":"https://api.github.com/repos/airbnb/javascript/labels/pull%20request%20wanted","name":"pull request wanted","color":"fbca04","default":false},{"id":311903383,"url":"https://api.github.com/repos/airbnb/javascript/labels/semver-breaking:%20guide%20change","name":"semver-breaking: guide change","color":"f7c6c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":22,"created_at":"2016-10-13T01:41:47Z","updated_at":"2016-12-07T09:18:26Z","closed_at":"2016-10-17T06:11:37Z","body":"The style guide [11.1](http://airbnb.io/javascript/#iterators--nope) says that you shouldn't use `for-of` and instead should use `forEach` (which I completely agree with).\n\nThat said, the ESLint rule [`no-iterator`](http://eslint.org/docs/rules/no-iterator.html) doesn't seem to enforce this, and the entry for [`no-restricted-syntax`](https://github.com/airbnb/javascript/blob/59db4aab157d98bf98c216c119e9ff848eea9505/packages/eslint-config-airbnb-base/rules/style.js#L213) contains `ForInStatement` but not `ForOfStatement`.\n\nCan we add `ForOfStatement` to `no-restricted-syntax` (or is the a better way of restricting `for-of` statements?\n"},"comment":{"url":"https://api.github.com/repos/airbnb/javascript/issues/comments/265396119","html_url":"https://github.com/airbnb/javascript/issues/1122#issuecomment-265396119","issue_url":"https://api.github.com/repos/airbnb/javascript/issues/1122","id":265396119,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T09:18:26Z","updated_at":"2016-12-07T09:18:26Z","body":"The given implementation of map - or any other abstraction - is entirely irrelevant. forEach is an array prototype method, just like the functional array prototype methods."}}
{"actor":{"display_login":"ljharb"}}