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 does not enforce end-paren if begin-paren is valid

krishnaglick opened this issue · comments

Given the following code with "jsx-wrap-multiline": true:

        () =>
            <div>
                test
            </div>

You get errors as expected.
Same with

        () =>
            (<div>
                test
            </div>)

Where it gives an error at both paren.
However

        () => (
            <div>
                test
            </div>),

validates fine.

I would expend the end paren to still be showing an error.

This ought to be fixed with #194