palantir / tslint-react

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

jsx-wrap-multiline does not enforce end-paren if begin-paren is valid #200

Closed krishnaglick closed 5 years ago

krishnaglick commented 5 years ago

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.

adidahiya commented 5 years ago

This ought to be fixed with #194