-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Objects in ternary has extra indent when using --use-tabs #2771
Copy link
Copy link
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.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
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.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Prettier Version: 1.6.1
Code
(playground)
Expected behavior:
The object in the ternary has the correct indentation as above JS snippet
Actual behavior:
We get an extra level of indentation in the object. This seems to only happen if using the
--use-tabsoption. If spaces are used, there is no issue.