-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Objects in ternary operator cause mixing of spaces and tabs #4874
Copy link
Copy link
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.type:duplicateIssues that are a duplicate of a previous issueIssues that are a duplicate of a previous issue
Description
Prettier 1.12.1
Playground link
--single-quote
--tab-width 4
--trailing-comma all
--use-tabsInput:
const dog = condition ? {
key: value1,
} : {
key: value2,
};Output:
const dog = condition
? {
key: value1,
}
: {
key: value2,
};Expected behavior:
Anything that does not mix spaces and tabs.
Reactions are currently unavailable
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.type:duplicateIssues that are a duplicate of a previous issueIssues that are a duplicate of a previous issue