{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3756","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3756/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3756/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3756/events","html_url":"https://github.com/eslint/eslint/issues/3756","id":106086556,"number":3756,"title":"space-before-keywords misrecognizes shorthand methods as keywords","user":{"login":"mzgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mzgol","html_url":"https://github.com/mzgol","followers_url":"https://api.github.com/users/mzgol/followers","following_url":"https://api.github.com/users/mzgol/following{/other_user}","gists_url":"https://api.github.com/users/mzgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mzgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzgol/subscriptions","organizations_url":"https://api.github.com/users/mzgol/orgs","repos_url":"https://api.github.com/users/mzgol/repos","events_url":"https://api.github.com/users/mzgol/events{/privacy}","received_events_url":"https://api.github.com/users/mzgol/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":"2015-09-11T20:18:11Z","updated_at":"2015-09-11T21:38:47Z","closed_at":null,"body":"The `space-before-keywords` rule (in ESLint 1.4.1) misrecognizes shorthand methods as keywords:\r\n```js\r\nlet x = {a() {}};\r\n```\r\nIt claims `a` is a keyword and should be preceded by a space.\r\n\r\nI want to not write spaces inside the parens in one-line blocks or arrays:\r\n```js\r\nconst a = [1, 2, 3];\r\nconst o = {a: 2, b: 3};\r\n```\r\nbut I still want spaces after & before keywords:\r\n```js\r\nif (x) {\r\n  /* ... */\r\n} else {\r\n  /* ... */\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/139667548","html_url":"https://github.com/eslint/eslint/issues/3756#issuecomment-139667548","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3756","id":139667548,"user":{"login":"SpaceK33z","id":533616,"avatar_url":"https://avatars.githubusercontent.com/u/533616?v=3","gravatar_id":"","url":"https://api.github.com/users/SpaceK33z","html_url":"https://github.com/SpaceK33z","followers_url":"https://api.github.com/users/SpaceK33z/followers","following_url":"https://api.github.com/users/SpaceK33z/following{/other_user}","gists_url":"https://api.github.com/users/SpaceK33z/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceK33z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceK33z/subscriptions","organizations_url":"https://api.github.com/users/SpaceK33z/orgs","repos_url":"https://api.github.com/users/SpaceK33z/repos","events_url":"https://api.github.com/users/SpaceK33z/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceK33z/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T21:38:47Z","updated_at":"2015-09-11T21:38:47Z","body":"It also returns a warning when using a class that extends an object:\r\n\r\n```js\r\nclass Foo extends Marionette.Object { }\r\n```\r\n\r\nReturns: `Missing space before keyword \".\"`\r\n\r\nThis is a somewhat related to your issue, so I added it here instead of creating a new issue."}}