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-multilines false negative within ternary #916

Closed
SpainTrain opened this issue Oct 17, 2016 · 1 comment
Closed

jsx-wrap-multilines false negative within ternary #916

SpainTrain opened this issue Oct 17, 2016 · 1 comment
Labels

Comments

@SpainTrain
Copy link

/* eslint react/jsx-wrap-multilines:2 */
import React from 'react'

// error  Missing parentheses around multilines JSX
const bad =
    <div>
        <div />
    </div>

// no error
const erroneouslyPasses = true
    ? <div>
        <div />
    </div>
    : <div>
        <div />
    </div>

related to #790 #791 #874

@ljharb ljharb added the bug label Oct 18, 2016
@tannerlinsley
Copy link

I'm still seeing this happen with all of my ternaries that include multi-line JSX :(
Using version ^4.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants