{"action":"opened","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/4140","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/4140/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/4140/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/4140/events","html_url":"https://github.com/prettier/prettier/issues/4140","id":304653816,"number":4140,"title":"Conditional operator and some object has format bug --useTabs","user":{"login":"QuietWind","id":8223607,"avatar_url":"https://avatars0.githubusercontent.com/u/8223607?v=4","gravatar_id":"","url":"https://api.github.com/users/QuietWind","html_url":"https://github.com/QuietWind","followers_url":"https://api.github.com/users/QuietWind/followers","following_url":"https://api.github.com/users/QuietWind/following{/other_user}","gists_url":"https://api.github.com/users/QuietWind/gists{/gist_id}","starred_url":"https://api.github.com/users/QuietWind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuietWind/subscriptions","organizations_url":"https://api.github.com/users/QuietWind/orgs","repos_url":"https://api.github.com/users/QuietWind/repos","events_url":"https://api.github.com/users/QuietWind/events{/privacy}","received_events_url":"https://api.github.com/users/QuietWind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-13T07:26:25Z","updated_at":"2018-03-13T07:26:25Z","closed_at":null,"author_association":"NONE","body":"**Prettier 1.11.1**\r\n[Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEBLWcBOAzAhmOAAgEkpsJDgAdKKmKXAWziUIGcZN0BzAbhrq5uLQlACujAEZZ+UAL4CokKB0K5JAfQAmuGLlalyAbQC6hAD6ixAG2uEAvIVOyay1YwCeUOAHcHhAEFMTFwPADpUNiCQjwAKdW1dXABKARgAfic0ujpqWhgcgpgwAAtWKnASioAabKK6SUlWAGYAFjq6BSgTNNZxW1kQapAIAAcYVGg2ZFBcYIgfAAU5hGmUXAA3CFQtIZBcDmQ8azY4YckQsABrOBgAZVH8HmROMTOQLQgwI9wT9-RTpgYIsQtxGLgfn9hgArNgADwAQpcbvcmHAADLoOCQ07DCBiGCjAkAJhx70emEByBAMA8ozgbDAXHGe1GXFgAHUdjASsgABwABmGbIgpw5IVG1LZDKwG2xw0wcAAjmJUIqQUJwWThqdGKgXpg3jqeNY4ABFMQQeDamnqLlaHnIVrDTi4VDWHgAYQgjC1KCg0HlIDEpwAKuo1q84HI5EA)\r\n```sh\r\n--parser typescript\r\n--tab-width 4\r\n--use-tabs\r\n```\r\n\r\n**Input:**\r\n```tsx\r\ninterface Info {\r\n\tname: string;\r\n\tage: number;\r\n}\r\n\r\nconst ab_data: Info[] | null = [];\r\n\r\nconst mynew = Array.isArray(ab_data)\r\n\t? [\r\n\t\t\t{\r\n\t\t\t\tch: \"ch\",\r\n\t\t\t\tbb: 34\r\n\t\t\t}\r\n]\r\n\t: null;\r\n\r\n```\r\n\r\n**Output:**\r\n```tsx\r\ninterface Info {\r\n\tname: string;\r\n\tage: number;\r\n}\r\n\r\nconst ab_data: Info[] | null = [];\r\n\r\nconst mynew = Array.isArray(ab_data)\r\n\t? [\r\n\t\t\t{\r\n\t\t\t\tch: \"ch\",\r\n\t\t\t\tbb: 34\r\n\t\t\t}\r\n\t  ]\r\n\t: null;\r\n\r\n```\r\n\r\n**Expected behavior:**\r\n\r\ninterface Info {\r\n\tname: string;\r\n\tage: number;\r\n}\r\n\r\nconst ab_data: Info[] | null = [];\r\n\r\nconst mynew = Array.isArray(ab_data)\r\n\t? [\r\n\t\t\t{\r\n\t\t\t\tch: \"ch\",\r\n\t\t\t\tbb: 34\r\n\t\t\t}\r\n\t\t]\r\n\t: null;\r\n\r\n![image](https://user-images.githubusercontent.com/8223607/37327794-ae0ea22c-26d2-11e8-9c75-49b3022ac255.png)\r\n\r\nhas two space！pls check some error\r\n"}}
{"actor":{"display_login":"QuietWind"}}