Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

jsx-wrap-multiline can't handle JSX fragment syntax #3547

Closed
pelotom opened this issue Dec 6, 2017 · 2 comments
Closed

jsx-wrap-multiline can't handle JSX fragment syntax #3547

pelotom opened this issue Dec 6, 2017 · 2 comments

Comments

@pelotom
Copy link

pelotom commented Dec 6, 2017

Bug Report

  • TSLint version: 5.8
  • TypeScript version: 2.6.2
  • Running TSLint via: (pick one) CLI

TypeScript 2.6.2 added support for JSX fragment syntax. However the jsx-wrap-multiline rule doesn't like it. For example, this code should be fine, but it gets flagged:

const fragment = (
  <>
    <div>
      hi
    </div>
  </>
);
// Error: Multiline JSX elements must be wrapped in parentheses
@ajafff
Copy link
Contributor

ajafff commented Dec 6, 2017

I think you want to report this in https://github.com/palantir/tslint-react instead

@pelotom
Copy link
Author

pelotom commented Dec 6, 2017

Right-o, sorry. It’s already been reported there: palantir/tslint-react#124

@pelotom pelotom closed this as completed Dec 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants