{"action":"opened","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/4744","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/4744/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/4744/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/4744/events","html_url":"https://github.com/prettier/prettier/issues/4744","id":335278245,"node_id":"MDU6SXNzdWUzMzUyNzgyNDU=","number":4744,"title":"Prettier adding extra spaces when linted","user":{"login":"vajahath","id":12165822,"node_id":"MDQ6VXNlcjEyMTY1ODIy","avatar_url":"https://avatars2.githubusercontent.com/u/12165822?v=4","gravatar_id":"","url":"https://api.github.com/users/vajahath","html_url":"https://github.com/vajahath","followers_url":"https://api.github.com/users/vajahath/followers","following_url":"https://api.github.com/users/vajahath/following{/other_user}","gists_url":"https://api.github.com/users/vajahath/gists{/gist_id}","starred_url":"https://api.github.com/users/vajahath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vajahath/subscriptions","organizations_url":"https://api.github.com/users/vajahath/orgs","repos_url":"https://api.github.com/users/vajahath/repos","events_url":"https://api.github.com/users/vajahath/events{/privacy}","received_events_url":"https://api.github.com/users/vajahath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-25T06:44:22Z","updated_at":"2018-06-25T06:44:22Z","closed_at":null,"author_association":"NONE","body":"**Prettier 1.13.5**\r\n[Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEA3AhgJwAQFcDOcOAvNsAL4DcAOlOvgJ5RjYBmuzMAltNvlwFsADgBs4AMSgAKAJTBa1GASIA6fELhgu6EVxgMA6noAWAYXQwdEAOa442YgpiL1m7bv0BJACb4VYqGsYY2wAPmwABidFRQB+bHQAd3Q9bGs4GABlDS0dPQYAQShvAFl0IXNLERs7KWjnBtdcjwYffAAaepiYIUwIb1wwGAAldEC4Tqhu7uqRWYgRSemYGWwAejXsAB4AWh3sYKJ7LnwE7AAmPiF0MHtvLlZWI+Z7KQAVY3sITC5rLjoRNhIN5jqdLAAjHb-EGwODeGRdGBIbAAbQAujQoOQQO0QBAhNxoPhkKAsH1EgAFLAIYkodCoCBcbw4kDgzA3ADWGWyN3+1mQMEwdlx-0ImBgFPZ1gE6GQrB0hFxACt8AAPABC7LAXKy6AEcAAMv84HKFRMQNdMGLkKz0OCGNUoCzev8YEZvMFkAAOCK43oQQgGdlCG29OBi1Am3GYOAAR1wXBjkvQ0tlSHlIkVIEIAi4AqF5v4gTEAEVcBB4KbM+aIe7PUhzrjBSldIFTBABDKbVBoFGQMo3nbaRnCORyEA)\r\n```sh\r\n--parser babylon\r\n```\r\n\r\n**Input:**\r\n```jsx\r\nvar user = {};\r\nasync function simpleFn(){\r\n\tuser.specialityWithCatalogue =\r\n\t\tspecialityIds.length > 0\r\n\t\t\t? await getSpecialityAndMapCatalogue(\r\n\t\t\t\tspecialityIds,\r\n\t\t\t\tproductRange,\r\n\t\t\t\tlollolol,\r\n\t\t\t) // <-- there is a 2 space difference (The original code is tab-indented)\r\n\t\t\t: [];\r\n}\r\n```\r\n\r\n**Output:**\r\n```jsx\r\nvar user = {};\r\nasync function simpleFn() {\r\n  user.specialityWithCatalogue =\r\n    specialityIds.length > 0\r\n      ? await getSpecialityAndMapCatalogue(\r\n          specialityIds,\r\n          productRange,\r\n          lollolol\r\n        ) // <-- there is a 2 space difference (The original code is tab-indented)\r\n      : [];\r\n}\r\n\r\n```\r\n\r\n**Expected behavior:**\r\nDo we really need those extra spaces. Tslint generates an error regarding this.\r\nExpected:\r\n```jsx\r\nvar user = {};\r\nasync function simpleFn() {\r\n  user.specialityWithCatalogue =\r\n    specialityIds.length > 0\r\n      ? await getSpecialityAndMapCatalogue(\r\n          specialityIds,\r\n          productRange,\r\n          lollolol\r\n      ) // <-- the extra 2 space removed\r\n      : [];\r\n}\r\n\r\n```\r\nHow it looks like:\r\n![image](https://user-images.githubusercontent.com/12165822/41834210-070041b6-7871-11e8-8a59-4430d200821e.png)\r\n"}}
{"actor":{"display_login":"vajahath"}}