-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed as not planned
Labels
UnactionableThere isn't something we can do with this issueThere isn't something we can do with this issue
Description
๐ Search Terms
ternary indentation, nested ternary, formatter, typescript indentation
๐ Version & Regression Information
This changed in PR #62537 (#62537)
Unsure if this is a regression or longstanding bug.
โฏ Playground Link
No response
๐ป Code
const result = condition1 ? (condition2 ? value1 : value2) : value3;Expected formatter to indent nested ternary consistently.
๐ Actual behavior
Formatter does not indent nested ternary operators correctly, causing confusion in complex expressions.
๐ Expected behavior
Nested ternary operators should be indented to clearly reflect their structure, improving code readability.
Additional information about the issue
Related PR: #62537
MartinJohns, jcalz, suvanshenoy and snarbles2
Metadata
Metadata
Assignees
Labels
UnactionableThere isn't something we can do with this issueThere isn't something we can do with this issue