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
It would be really handy if there was an option added to jsx-wrap-multiline that always newlined the wrapped output on autofix, so that tag alignment was maintained:
I think it does. Given the right configuration. The rule is quite complex now (many options) but it's also really powerful. 😄
See example below, using autofixer on save + jsx-ident rule. Not sure why hello world does not get indented, but that's not part of this rule but jsx-indent instead.
There are a few other issues related to this concept, where the autofix for
jsx-wrap-multilines
results in something like this:This happens in specific scenarios (when there is no indentation set), but this always happens with multiline self-closing tags:
It would be really handy if there was an option added to
jsx-wrap-multiline
that always newlined the wrapped output on autofix, so that tag alignment was maintained:Since the whole point is that wrapping the element enhances readability, this option would help greatly.
The text was updated successfully, but these errors were encountered: