Closed
Description
I'm using [email protected] and [email protected]
It's possible to write a configuration such as
{
"react/jsx-space-before-closing" : [ "error", "never" ],
"react/jsx-tag-spacing" : [ "error", {
closingSlash : "never",
beforeSelfClosing : "always",
afterOpening : "never",
}]
}
meaning code such as
const test = () => (
<div>
<br/>
<br />
</div>
)
gets an error for both having (2nd br) and not having (1st br) a space before the closing bracket.
The jsx-space-before-closing
rule should be deprecated since jsx-tag-spacing
handles its scope and more.
Metadata
Metadata
Assignees
Labels
No labels