Skip to content

Suggestion: no trailing semicolon #2527

@OliverJAsh

Description

@OliverJAsh

Copying suggestion from palantir/tslint-react#116:

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>

/cc @jkillian

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