{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/5545","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/5545/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/5545/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/5545/events","html_url":"https://github.com/eslint/eslint/pull/5545","id":140157312,"number":5545,"title":"Fix: object-curly-spacing doesn't know types","user":{"login":"BYK","id":126780,"avatar_url":"https://avatars.githubusercontent.com/u/126780?v=3","gravatar_id":"","url":"https://api.github.com/users/BYK","html_url":"https://github.com/BYK","followers_url":"https://api.github.com/users/BYK/followers","following_url":"https://api.github.com/users/BYK/following{/other_user}","gists_url":"https://api.github.com/users/BYK/gists{/gist_id}","starred_url":"https://api.github.com/users/BYK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BYK/subscriptions","organizations_url":"https://api.github.com/users/BYK/orgs","repos_url":"https://api.github.com/users/BYK/repos","events_url":"https://api.github.com/users/BYK/events{/privacy}","received_events_url":"https://api.github.com/users/BYK/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/cla%20found","name":"cla found","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-11T11:12:25Z","updated_at":"2016-03-12T09:41:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/5545","html_url":"https://github.com/eslint/eslint/pull/5545","diff_url":"https://github.com/eslint/eslint/pull/5545.diff","patch_url":"https://github.com/eslint/eslint/pull/5545.patch"},"body":"Fixes #5537, fixes #5538.\r\n\r\n`object-curly-spacing` was blindly checking the penultimate token for\r\n`objectsInObjects` and `arraysInObjects` options and it was confusing\r\ncomputed member expressions and function expressions with array and\r\nobject expressions respectively. This patch adds a type check for the\r\npenultimate tokens owner node."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/195701921","html_url":"https://github.com/eslint/eslint/pull/5545#issuecomment-195701921","issue_url":"https://api.github.com/repos/eslint/eslint/issues/5545","id":195701921,"user":{"login":"BYK","id":126780,"avatar_url":"https://avatars.githubusercontent.com/u/126780?v=3","gravatar_id":"","url":"https://api.github.com/users/BYK","html_url":"https://github.com/BYK","followers_url":"https://api.github.com/users/BYK/followers","following_url":"https://api.github.com/users/BYK/following{/other_user}","gists_url":"https://api.github.com/users/BYK/gists{/gist_id}","starred_url":"https://api.github.com/users/BYK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BYK/subscriptions","organizations_url":"https://api.github.com/users/BYK/orgs","repos_url":"https://api.github.com/users/BYK/repos","events_url":"https://api.github.com/users/BYK/events{/privacy}","received_events_url":"https://api.github.com/users/BYK/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T09:41:37Z","updated_at":"2016-03-12T09:41:37Z","body":"Updated. I ran `npm run perf` and median perf numbers look slightly better after the patch. Guessing that's thanks to @alberto's suggestion :)"}}