-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
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
Metadata
Metadata
Assignees
Labels
No labels