{"action":"closed","issue":{"url":"https://api.github.com/repos/brenolf/polyjuice/issues/75","repository_url":"https://api.github.com/repos/brenolf/polyjuice","labels_url":"https://api.github.com/repos/brenolf/polyjuice/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/brenolf/polyjuice/issues/75/comments","events_url":"https://api.github.com/repos/brenolf/polyjuice/issues/75/events","html_url":"https://github.com/brenolf/polyjuice/issues/75","id":151638046,"number":75,"title":"JSCS `requireSpaceAfterKeywords` to ESLint `keyword-spacing`","user":{"login":"ntwb","id":1016458,"avatar_url":"https://avatars.githubusercontent.com/u/1016458?v=3","gravatar_id":"","url":"https://api.github.com/users/ntwb","html_url":"https://github.com/ntwb","followers_url":"https://api.github.com/users/ntwb/followers","following_url":"https://api.github.com/users/ntwb/following{/other_user}","gists_url":"https://api.github.com/users/ntwb/gists{/gist_id}","starred_url":"https://api.github.com/users/ntwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntwb/subscriptions","organizations_url":"https://api.github.com/users/ntwb/orgs","repos_url":"https://api.github.com/users/ntwb/repos","events_url":"https://api.github.com/users/ntwb/events{/privacy}","received_events_url":"https://api.github.com/users/ntwb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-28T13:14:01Z","updated_at":"2016-04-28T13:40:52Z","closed_at":"2016-04-28T13:40:52Z","body":"Given this JSCS rule: http://jscs.info/rule/requireSpaceAfterKeywords\r\n```js\r\n    \"requireSpaceAfterKeywords\": [\r\n        \"if\",\r\n        \"else\",\r\n        \"for\",\r\n        \"while\",\r\n        \"do\",\r\n        \"switch\",\r\n        \"return\",\r\n        \"try\",\r\n        \"catch\"\r\n    ],\r\n```\r\nResults in ESLint: http://eslint.org/docs/rules/keyword-spacing\r\n```js\r\n    \"keyword-spacing\": [2, {\r\n        \"overrides\": {\r\n          \"catch\": {      \"after\": true   }\r\n          \"do\": {    \"after\": true    },\r\n          \"else\": {   \"after\":   },\r\n          \"for\": {  \"after\": true    },\r\n          \"if\": {  \"after\": true     },\r\n          \"return\": {     \"after\": true    },\r\n          \"switch\": {        \"after\": true   },\r\n          \"try\": {   \"after\": true  },\r\n          \"while\": {   \"after\": true      },\r\n        }\r\n      }],\r\n```\r\n\r\nExpected ESLint rule:\r\n```js\r\n    \"keyword-spacing\": 2,\r\n```\r\n\r\nAs `catch`, `do`, `else`, `for`, `if`, `return`, `switch`, `try`, and `while` are included in the default ESLint `keyword-spacing` rule, this is why I state that `'keyword-spacing': 2,` was expected.\r\n\r\nI'm not sure if this is something polyjuice already handles in other rule conversions but just wanted to put it out there, more than happy to fix this manually and have this issue closed as a won't fix 😄 \r\n"}}