{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/6195","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/6195/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/6195/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/6195/events","html_url":"https://github.com/eslint/eslint/issues/6195","id":154996461,"number":6195,"title":"generator-star-spacing: work better together with space-before-function-paren","user":{"login":"jsnajdr","id":664258,"avatar_url":"https://avatars0.githubusercontent.com/u/664258?v=3","gravatar_id":"","url":"https://api.github.com/users/jsnajdr","html_url":"https://github.com/jsnajdr","followers_url":"https://api.github.com/users/jsnajdr/followers","following_url":"https://api.github.com/users/jsnajdr/following{/other_user}","gists_url":"https://api.github.com/users/jsnajdr/gists{/gist_id}","starred_url":"https://api.github.com/users/jsnajdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsnajdr/subscriptions","organizations_url":"https://api.github.com/users/jsnajdr/orgs","repos_url":"https://api.github.com/users/jsnajdr/repos","events_url":"https://api.github.com/users/jsnajdr/events{/privacy}","received_events_url":"https://api.github.com/users/jsnajdr/received_events","type":"User","site_admin":false},"labels":[{"id":45711352,"url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":255319420,"url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0","default":false},{"id":45798639,"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-05-16T09:51:21Z","updated_at":"2017-05-02T04:06:22Z","closed_at":"2017-01-08T05:21:30Z","body":"<!--\nThis template is for bug reports. If you are reporting a bug, please continue on. If you are here for another reason, please see below:\n\n1. To propose a new rule: http://eslint.org/docs/developer-guide/contributing/new-rules\n2. To request a change: http://eslint.org/docs/developer-guide/contributing/changes\n3. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\n\nNote that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\n-->\n\n**What version of ESLint are you using?**\n2.9.0\n\n**What parser (default, Babel-ESLint, etc.) are you using?**\ndefault\n\n**What did you do? Please include the actual source code causing the issue.**\nI'd like to define the following coding standard for functions and generators:\n\n```\nfunction name() {}\nlet f = function() {}\nfunction* gen() {}\nlet g = function*() {}\nlet m = { * method() {} }\n```\n\nI.e.:\n1. No space before function paren\n2. One space after generator star, no space before\n3. No space before function paren for anonymous generator\n\nThis is impossible to achieve with the current options for `space-before-function-parent` and `generator-star-spacing` rules. The closest I can get is this configuration:\n\n```\n{\n  \"parserOptions\": { \"ecmaVersion\": 6 },\n  \"rules\": {\n    \"space-before-function-paren\": [ \"error\", \"never\" ],\n    \"generator-star-spacing\": [ \"error\", \"after\" ]\n  }\n}\n```\n\nBut this doesn't satisfy rule 3 above and forces me to use `function* ()`, which is inconsistent with `function()`.\n\nThe `generator-star-spacing` rule could use some `anonymous` vs. `named` distinction, similar to what `space-before-function-paren` already has.\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/298492666","html_url":"https://github.com/eslint/eslint/issues/6195#issuecomment-298492666","issue_url":"https://api.github.com/repos/eslint/eslint/issues/6195","id":298492666,"user":{"login":"EthanRutherford","id":5589147,"avatar_url":"https://avatars3.githubusercontent.com/u/5589147?v=3","gravatar_id":"","url":"https://api.github.com/users/EthanRutherford","html_url":"https://github.com/EthanRutherford","followers_url":"https://api.github.com/users/EthanRutherford/followers","following_url":"https://api.github.com/users/EthanRutherford/following{/other_user}","gists_url":"https://api.github.com/users/EthanRutherford/gists{/gist_id}","starred_url":"https://api.github.com/users/EthanRutherford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EthanRutherford/subscriptions","organizations_url":"https://api.github.com/users/EthanRutherford/orgs","repos_url":"https://api.github.com/users/EthanRutherford/repos","events_url":"https://api.github.com/users/EthanRutherford/events{/privacy}","received_events_url":"https://api.github.com/users/EthanRutherford/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T04:06:22Z","updated_at":"2017-05-02T04:06:22Z","body":"Please reconsider."}}
{"actor":{"display_login":"EthanRutherford"}}