Skip to content

deprecation of jsx-space-before-closing #967

Closed
@remitbri

Description

@remitbri

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions