Skip to content

New rule: jsx-no-trailing-semicolon #116

@jkillian

Description

@jkillian

We had a case in our code where a semicolon was accidentally used at the end of a line of a tsx statement. Since this is almost always unintended, it makes sense to have a lint rule to warn against it. The rule would warn against code like the following:

<div>
  <SomeComponent/>;
</div>

(haven't thought about the rule name that much, so take the title with a grain of salt)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions