palantir / tslint-react

:orange_book: Lint rules related to React & JSX for TSLint.
Apache License 2.0
749 stars 76 forks source link

jsx-alignment should allow empty tag. #136

Closed zheeeng closed 5 years ago

zheeeng commented 6 years ago

In React 16, we have Fragments usage. like below:

render() {
  return (
    <>
      <ChildA />
      <ChildB />
      <ChildC />
    </>
  );
}

jsx-alignment rule will report [tslint] Tag closing must be on its own line and aligned with opening of tag (jsx-alignment) at present.

adidahiya commented 5 years ago

Closing due to old age, please comment if it's still an issue