{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/2573","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/2573/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/2573/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/2573/events","html_url":"https://github.com/prettier/prettier/issues/2573","id":247011144,"number":2573,"title":"Prettier misplaces commented out code between if else","user":{"login":"dumptyd","id":16368429,"avatar_url":"https://avatars1.githubusercontent.com/u/16368429?v=4","gravatar_id":"","url":"https://api.github.com/users/dumptyd","html_url":"https://github.com/dumptyd","followers_url":"https://api.github.com/users/dumptyd/followers","following_url":"https://api.github.com/users/dumptyd/following{/other_user}","gists_url":"https://api.github.com/users/dumptyd/gists{/gist_id}","starred_url":"https://api.github.com/users/dumptyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumptyd/subscriptions","organizations_url":"https://api.github.com/users/dumptyd/orgs","repos_url":"https://api.github.com/users/dumptyd/repos","events_url":"https://api.github.com/users/dumptyd/events{/privacy}","received_events_url":"https://api.github.com/users/dumptyd/received_events","type":"User","site_admin":false},"labels":[{"id":520495035,"url":"https://api.github.com/repos/prettier/prettier/labels/area:comments","name":"area:comments","color":"fbca04","default":false},{"id":707748687,"url":"https://api.github.com/repos/prettier/prettier/labels/lang:javascript","name":"lang:javascript","color":"006b75","default":false},{"id":491115803,"url":"https://api.github.com/repos/prettier/prettier/labels/type:bug","name":"type:bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-08-01T09:37:42Z","updated_at":"2018-04-05T17:53:07Z","closed_at":null,"author_association":"NONE","body":"```js\r\nlet a = 2;\r\n\r\nif (a==2) {\r\n  console.log('2');\r\n}\r\n// else if (a==3) {\r\n//   console.log('3');\r\n// }\r\nelse if (a==4) {\r\n  console.log('4');\r\n}\r\n```\r\n\r\nbecomes\r\n\r\n```js\r\nlet a = 2;\r\n\r\nif (a == 2) {\r\n  console.log('2');\r\n} else if (a == 4) {\r\n  // else if (a==3) {\r\n  // console.log('3');\r\n  // }\r\n  console.log('4');\r\n}\r\n```\r\n\r\n[Live example](https://prettier.io/playground/#%7B%22content%22%3A%22let%20a%20%3D%202%3B%5Cn%5Cnif%20(a%3D%3D2)%20%7B%5Cn%20console.log(%272%27)%3B%5Cn%7D%5Cn%2F%2F%20else%20if%20(a%3D%3D3)%20%7B%5Cn%2F%2F%20console.log(%273%27)%3B%5Cn%2F%2F%20%7D%5Cnelse%20if%20(a%3D%3D4)%20%7B%5Cn%20console.log(%274%27)%3B%5Cn%7D%5Cn%22%2C%22options%22%3A%7B%22printWidth%22%3A80%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Atrue%2C%22trailingComma%22%3A%22none%22%2C%22bracketSpacing%22%3Atrue%2C%22jsxBracketSameLine%22%3Afalse%2C%22parser%22%3A%22babylon%22%2C%22semi%22%3Atrue%2C%22useTabs%22%3Afalse%2C%22doc%22%3Afalse%2C%22ast%22%3Afalse%7D%7D)"},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/379021896","html_url":"https://github.com/prettier/prettier/issues/2573#issuecomment-379021896","issue_url":"https://api.github.com/repos/prettier/prettier/issues/2573","id":379021896,"user":{"login":"duailibe","id":1574588,"avatar_url":"https://avatars3.githubusercontent.com/u/1574588?v=4","gravatar_id":"","url":"https://api.github.com/users/duailibe","html_url":"https://github.com/duailibe","followers_url":"https://api.github.com/users/duailibe/followers","following_url":"https://api.github.com/users/duailibe/following{/other_user}","gists_url":"https://api.github.com/users/duailibe/gists{/gist_id}","starred_url":"https://api.github.com/users/duailibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duailibe/subscriptions","organizations_url":"https://api.github.com/users/duailibe/orgs","repos_url":"https://api.github.com/users/duailibe/repos","events_url":"https://api.github.com/users/duailibe/events{/privacy}","received_events_url":"https://api.github.com/users/duailibe/received_events","type":"User","site_admin":false},"created_at":"2018-04-05T17:53:07Z","updated_at":"2018-04-05T17:53:07Z","author_association":"COLLABORATOR","body":"I believe people expect the following instad:\r\n\r\n```js\r\nif (cond) return;\r\n// one\r\nelse\r\n  return; // two\r\n```"}}
{"actor":{"display_login":"duailibe"}}