-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 1.7.4
Playground link
Input:
const platformString =
Platform.OS == 'ios'
? 'iOS'
: Platform.OS == 'android' ? 'Android' : 'unknown'
Output:
const platformString =
Platform.OS == "ios"
? "iOS"
: Platform.OS == "android" ? "Android" : "unknown";
Expected behavior:
const platformString =
Platform.OS == "ios"
? "iOS"
: Platform.OS == "android"
? "Android"
: "unknown";
(Or something like this.)
maxime1992, itsMapleLeaf, beezenees, jcrben, hawkrives and 5 more
Metadata
Metadata
Assignees
Labels
lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.