{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4585","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4585/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4585/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4585/events","html_url":"https://github.com/eslint/eslint/issues/4585","id":119793141,"number":4585,"title":"Add third option \"no-paren\" to space-after-keywords","user":{"login":"matoilic","id":18171,"avatar_url":"https://avatars.githubusercontent.com/u/18171?v=3","gravatar_id":"","url":"https://api.github.com/users/matoilic","html_url":"https://github.com/matoilic","followers_url":"https://api.github.com/users/matoilic/followers","following_url":"https://api.github.com/users/matoilic/following{/other_user}","gists_url":"https://api.github.com/users/matoilic/gists{/gist_id}","starred_url":"https://api.github.com/users/matoilic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matoilic/subscriptions","organizations_url":"https://api.github.com/users/matoilic/orgs","repos_url":"https://api.github.com/users/matoilic/repos","events_url":"https://api.github.com/users/matoilic/events{/privacy}","received_events_url":"https://api.github.com/users/matoilic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/eslint/eslint/labels/proposal","name":"proposal","color":"fef2c0"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-12-01T19:48:47Z","updated_at":"2015-12-18T00:14:09Z","closed_at":null,"body":"A common style for spaces after keywords is to only require them if the keyword is not followed by parentheses. This should be supported out of the box by eslint.\r\n\r\nGood\r\n```javascript\r\nif(expression) { } else { }\r\n```\r\n\r\nBad\r\n```javascript\r\nif (expression) { } else { }\r\n```\r\n\r\nBad\r\n```javascript\r\nif(expression) { }else{ }\r\n```\r\n\r\n#4561 introduces a \"no-paren\" option to the space-after-keywords rule.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28758413-add-third-option-no-paren-to-space-after-keywords?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/165621610","html_url":"https://github.com/eslint/eslint/issues/4585#issuecomment-165621610","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4585","id":165621610,"user":{"login":"mysticatea","id":1937871,"avatar_url":"https://avatars.githubusercontent.com/u/1937871?v=3","gravatar_id":"","url":"https://api.github.com/users/mysticatea","html_url":"https://github.com/mysticatea","followers_url":"https://api.github.com/users/mysticatea/followers","following_url":"https://api.github.com/users/mysticatea/following{/other_user}","gists_url":"https://api.github.com/users/mysticatea/gists{/gist_id}","starred_url":"https://api.github.com/users/mysticatea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysticatea/subscriptions","organizations_url":"https://api.github.com/users/mysticatea/orgs","repos_url":"https://api.github.com/users/mysticatea/repos","events_url":"https://api.github.com/users/mysticatea/events{/privacy}","received_events_url":"https://api.github.com/users/mysticatea/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T00:14:09Z","updated_at":"2015-12-18T00:14:09Z","body":"I think this issue is addressed by #3869.\r\n\r\n```json\r\n{\r\n    \"keyword-spacing\": {\r\n        \"before\": true,\r\n        \"after\": true,\r\n        \"overrides\": {\r\n            \"if\": {\"after\": false}\r\n        }\r\n    }\r\n}\r\n```"}}