{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/javascript/issues/207","labels_url":"https://api.github.com/repos/airbnb/javascript/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/javascript/issues/207/comments","events_url":"https://api.github.com/repos/airbnb/javascript/issues/207/events","html_url":"https://github.com/airbnb/javascript/issues/207","id":46991620,"number":207,"title":"Opinion on formatting if else if else block?","user":{"login":"codeHatcher","id":5360982,"avatar_url":"https://avatars.githubusercontent.com/u/5360982?v=3","gravatar_id":"","url":"https://api.github.com/users/codeHatcher","html_url":"https://github.com/codeHatcher","followers_url":"https://api.github.com/users/codeHatcher/followers","following_url":"https://api.github.com/users/codeHatcher/following{/other_user}","gists_url":"https://api.github.com/users/codeHatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/codeHatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeHatcher/subscriptions","organizations_url":"https://api.github.com/users/codeHatcher/orgs","repos_url":"https://api.github.com/users/codeHatcher/repos","events_url":"https://api.github.com/users/codeHatcher/events{/privacy}","received_events_url":"https://api.github.com/users/codeHatcher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/airbnb/javascript/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-28T05:38:05Z","updated_at":"2015-07-16T21:30:31Z","closed_at":null,"body":"I know what I would choose but I thought I would mention it here. What's the style guide for if else if else formatting.\r\n\r\n```javascript\r\nif (condition) {\r\n  //stuff\r\n} else {\r\n  //stuff\r\n}\r\n```\r\nvs\r\n```javascript\r\nif (condition) {\r\n  //stuff\r\n}\r\nelse {\r\n  //stuff\r\n}\r\n```\r\n\r\nI think the choice is obvious but, \"I've heard it both ways\"."},"comment":{"url":"https://api.github.com/repos/airbnb/javascript/issues/comments/122104694","html_url":"https://github.com/airbnb/javascript/issues/207#issuecomment-122104694","issue_url":"https://api.github.com/repos/airbnb/javascript/issues/207","id":122104694,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T21:30:31Z","updated_at":"2015-07-16T21:30:31Z","body":"See http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS - ie, always the former, also called \"cuddled elses\". K&R is repugnant."}}