{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5435","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5435/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5435/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5435/events","html_url":"https://github.com/eslint/eslint/issues/5435","id":137316726,"number":5435,"title":"space-before-function-paren does not work for anonymous generator functions","user":{"login":"despairblue","id":927609,"avatar_url":"https://avatars.githubusercontent.com/u/927609?v=3","gravatar_id":"","url":"https://api.github.com/users/despairblue","html_url":"https://github.com/despairblue","followers_url":"https://api.github.com/users/despairblue/followers","following_url":"https://api.github.com/users/despairblue/following{/other_user}","gists_url":"https://api.github.com/users/despairblue/gists{/gist_id}","starred_url":"https://api.github.com/users/despairblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/despairblue/subscriptions","organizations_url":"https://api.github.com/users/despairblue/orgs","repos_url":"https://api.github.com/users/despairblue/repos","events_url":"https://api.github.com/users/despairblue/events{/privacy}","received_events_url":"https://api.github.com/users/despairblue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-29T17:24:09Z","updated_at":"2016-02-29T19:08:03Z","closed_at":null,"body":"**What version of ESLint are you using?**\r\n2.2.0\r\n\r\n**What configuration and parser (Espree, Babel-ESLint, etc.) are you using?**\r\n* babel-eslint\r\n\r\n```js\r\n{\r\n  \"rules\": {\r\n    \"space-before-function-paren\": [2, {\"anonymous\": \"always\", \"named\": \"always\"}]\r\n  }\r\n}\r\n```\r\n**What did you do? Please include the actual source code causing the issue.**\r\nExample:\r\n```js\r\nvar bla = function *() {}\r\n\r\nbla()\r\n```\r\n\r\n**What did you expect to happen?**\r\nI expected it to not lint, because the documentation for the [generator-star-spacing rule](generator-star-spacing.html) says:\r\n> In anonymous function expressions, spacing between the * and the opening parenthesis is not checked. This is checked by the space-before-function-paren rule.\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\nEslint is not complaining about the missing space between the `*` and the `(`."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/190337907","html_url":"https://github.com/eslint/eslint/issues/5435#issuecomment-190337907","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5435","id":190337907,"user":{"login":"despairblue","id":927609,"avatar_url":"https://avatars.githubusercontent.com/u/927609?v=3","gravatar_id":"","url":"https://api.github.com/users/despairblue","html_url":"https://github.com/despairblue","followers_url":"https://api.github.com/users/despairblue/followers","following_url":"https://api.github.com/users/despairblue/following{/other_user}","gists_url":"https://api.github.com/users/despairblue/gists{/gist_id}","starred_url":"https://api.github.com/users/despairblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/despairblue/subscriptions","organizations_url":"https://api.github.com/users/despairblue/orgs","repos_url":"https://api.github.com/users/despairblue/repos","events_url":"https://api.github.com/users/despairblue/events{/privacy}","received_events_url":"https://api.github.com/users/despairblue/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T19:08:03Z","updated_at":"2016-02-29T19:08:03Z","body":"Is that the one used for the online demo editor? If so, then yes.\n\nOn Mon, Feb 29, 2016, 19:18 Kevin Partington <notifications@github.com>\nwrote:\n\n> Can you reproduce this with the default parser?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/eslint/eslint/issues/5435#issuecomment-190318059>.\n>\n-- \nQ: Why is this email five sentences or less?\nA: http://five.sentenc.es\n"}}