Closed
Description
There are a few other issues related to this concept, where the autofix for jsx-wrap-multilines
results in something like this:
return (<div>
foo
</div>);
This happens in specific scenarios (when there is no indentation set), but this always happens with multiline self-closing tags:
return (<SomeChildlessComponent
foo="foo"
bar="bar"
/>);
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:
return (
<SomeChildlessComponent
foo="foo"
bar="bar"
/>
);
Since the whole point is that wrapping the element enhances readability, this option would help greatly.
Metadata
Metadata
Assignees
Labels
No labels