You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far I can't find a way of defining the indent of a ternary expression like this:
foo ?
bar :
paz
Whether it can be disabled completely with ignoredNodes: ['ConditionalExpression'] or written as
foo ?
bar :
paz
Suggested solution
Add a new option "ConditionalExpression" (default: 1) to be able to control the indentation of the ternary expression. For the case above it could be set to 0. This would align with other options like "SwitchCase" or "MemberExpression".
Clear and concise description of the problem
So far I can't find a way of defining the indent of a ternary expression like this:
Whether it can be disabled completely with
ignoredNodes: ['ConditionalExpression']
or written asSuggested solution
Add a new option "ConditionalExpression" (default: 1) to be able to control the indentation of the ternary expression. For the case above it could be set to 0. This would align with other options like "SwitchCase" or "MemberExpression".
Alternative
No response
Additional context
No response
Validations
Contributes
The text was updated successfully, but these errors were encountered: