Original from: https://github.com/prettier/prettier/pull/8554#issuecomment-650995137 **Prettier 2.0.5** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuE8DOMAEB+TB6PTSAW2IRgB0pNMAzCCKmpTAIwEMAnAbhABoQEAA4wAltDTJQXThADuABS4JJKdgBs57AJ6SBrTuzABrODADKQo6KgBzZDE4BXOAIAWMYuoDqb0eiswOHMVf1EAN39tZHA0PRAbNDhOGAVDW2J2ZFoNJIEAKzQADwAhQxMzc3YyABkbOGzc1xBCovMbW3U4AEUnCHhG9TyQK04kzhiOVjh1fhHOGxhvUQATGDdkAA4ABgEhWSTvQyEY-bhx8IaBAEc++DThVRB2NABaKDg4Fa+5zjhb0R-NLsDJZJA5IbNJLEUQOZxQjpdXr9BrgpoCGDsVjLNYbJAAJgxhlE6g6AGEIKQwSBzgBWOZOJIAFSxqghw3CLgAklBvrBzGAFiIAIK88wwbRdQZJAC+MqAA) ```sh --parser babel ``` **Input:** ```jsx test ? // comment foo : bar; ``` **Output:** ```jsx test // comment ? foo : bar; ``` **Expected behavior:** ```jsx test ? // comment foo : bar; ```
Original from: #8554 (comment)
Prettier 2.0.5
Playground link
Input:
Output:
Expected behavior: