{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/1271","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/1271/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/1271/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/1271/events","html_url":"https://github.com/prettier/prettier/issues/1271","id":221784201,"number":1271,"title":"Wrong indentation on ternary operator","user":{"login":"FezVrasta","id":5382443,"avatar_url":"https://avatars1.githubusercontent.com/u/5382443?v=3","gravatar_id":"","url":"https://api.github.com/users/FezVrasta","html_url":"https://github.com/FezVrasta","followers_url":"https://api.github.com/users/FezVrasta/followers","following_url":"https://api.github.com/users/FezVrasta/following{/other_user}","gists_url":"https://api.github.com/users/FezVrasta/gists{/gist_id}","starred_url":"https://api.github.com/users/FezVrasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FezVrasta/subscriptions","organizations_url":"https://api.github.com/users/FezVrasta/orgs","repos_url":"https://api.github.com/users/FezVrasta/repos","events_url":"https://api.github.com/users/FezVrasta/events{/privacy}","received_events_url":"https://api.github.com/users/FezVrasta/received_events","type":"User","site_admin":false},"labels":[{"id":516128597,"url":"https://api.github.com/repos/prettier/prettier/labels/Needs%20discussion","name":"Needs discussion","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-04-14T10:23:06Z","updated_at":"2017-05-21T22:29:23Z","closed_at":"2017-05-21T22:07:22Z","body":"I can't reproduce it on http://mib.im/try-prettier/, but if I run:\r\n\r\n```\r\n$(npm bin)/prettier --single-quote --trailing-comma es5 --write \"{src,scripts,tests}/**/*.js\"\r\n```\r\n\r\nOn my [Popper.js](https://github.com/FezVrasta/popper.js), the file `src/tooltip/index.js` at line 59 will have:\r\n\r\n```\r\n    // get events list\r\n    const events = typeof options.trigger === 'string'\r\n      ? options.trigger.split(' ').filter(trigger => {\r\n          return ['click', 'hover', 'focus'].indexOf(trigger) !== -1;\r\n        })\r\n      : [];\r\n```\r\n\r\nNote that the `return` line has wrong indentation."},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/302967765","html_url":"https://github.com/prettier/prettier/issues/1271#issuecomment-302967765","issue_url":"https://api.github.com/repos/prettier/prettier/issues/1271","id":302967765,"user":{"login":"FezVrasta","id":5382443,"avatar_url":"https://avatars1.githubusercontent.com/u/5382443?v=3","gravatar_id":"","url":"https://api.github.com/users/FezVrasta","html_url":"https://github.com/FezVrasta","followers_url":"https://api.github.com/users/FezVrasta/followers","following_url":"https://api.github.com/users/FezVrasta/following{/other_user}","gists_url":"https://api.github.com/users/FezVrasta/gists{/gist_id}","starred_url":"https://api.github.com/users/FezVrasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FezVrasta/subscriptions","organizations_url":"https://api.github.com/users/FezVrasta/orgs","repos_url":"https://api.github.com/users/FezVrasta/repos","events_url":"https://api.github.com/users/FezVrasta/events{/privacy}","received_events_url":"https://api.github.com/users/FezVrasta/received_events","type":"User","site_admin":false},"created_at":"2017-05-21T22:29:23Z","updated_at":"2017-05-21T22:29:23Z","body":"1271 is this issue 😅"}}
{"actor":{"display_login":"FezVrasta"}}