Open Faleij opened 8 years ago
@Faleij thanks a lot for the bug reports! please keep them coming!
it is a conflict with the ReturnStatement
indentation, similar to what happened on #443 - will probably need to improve logic to actually check if nodes at left/right of the operator
will add indentation or not (for BinaryExpression
, UnaryExpression
and LogicalExpression
)
maybe we can abstract the logic somehow, so we don't need to implement it also for AssignmentExpression
, VariableDeclaration
and ObjectExpression
... - I wish the whole indentation logic was simpler...
Thanks for fixing #443, however I have found some more indentation problems with Unary and Binary operators combined with Functions. Return statement is irrelevant in all cases, could as well be an variable assignment.
esformatter v0.9.5