**Prettier 2.0.5** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuE8DOMA6UAEOD8OAZgJYBOG2eA9NTpALYMJa45I5pyRQAmIAGhAQADjBLQ0yUAEMyZCAHcACnIRSUMgDaKZATylCARmRlgA1nBgBlEWZJQA5shhkArnCEALGAy0B1LxJ0OzA4a3VgkgA3YL1kcDRDEAcuMhhlU0cGGWQibS4hACs0AA8AIVMLK2sZZgAZBzg8gs8QEtLrB0ctOABFNwh4Fq1CkDsKODIEoxkjOC1BcbIHGH8SXhgvZAAOAAYhEQUuf1MRBKO4NOjmoQBHQfhM0Q0QGTQAWig4OF5fpbIcAe5DgmRk2VySHyozaXAYJBc7lh3V6AyGzShrSEMDm6022yQACZsaYSFpugBhCBMSEgK4AViWbi4ABU5hpoWNoh4AJJ8FjWMArMQAQT41hgel6Iy4AF9ZUA) ```sh --parser babel ``` **Input:** ```jsx test ? first // comment : second ``` **Output:** ```jsx test ? first : // comment second; ``` **Expected behavior:** ```jsx test ? first // comment : second ```
Prettier 2.0.5
Playground link
Input:
Output:
Expected behavior: