palantir / tslint-react

:orange_book: Lint rules related to React & JSX for TSLint.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsx-wrap-multiline false positive with generic type parameter definitions

roman-16 opened this issue · comments

commented

Throws this error on arrow functions if jsx-wrap-multiline is turned on. Happen obviously only in .tsx files.

screenshot from 2018-04-22 21-45-34

Hey @Wavum, thanks for the report! Can you post the text of a full file in which you see this error happen? Also, what version of tslint/typescript?

We have this bug occurring in our project as well. The line @wa4-fearless-otter has above should cause the bug to appear: const test = <T>(a: number): void => a = 1;

Closing due to deprecation, see #210