Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
krishnaglick opened this issue Jan 31, 2019 · 1 comment
Closed
Labels
Formatting rule Relates to a rule which enforces code formatting and likely overlaps with prettier Type: Bug

Comments

@krishnaglick
Copy link

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
Copy link
Contributor

This ought to be fixed with #194

@adidahiya adidahiya added Type: Bug Formatting rule Relates to a rule which enforces code formatting and likely overlaps with prettier labels Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Formatting rule Relates to a rule which enforces code formatting and likely overlaps with prettier Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants