-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-indent rule doesn't properly validate ternary (?:) expressions with no parens #1315
Comments
Note: Also an issue with jsx-indent-props, e.g.: {
condition
? <El
prop1={ 1 }
prop2={ 2 }
/>
: <OtherEl
prop1={ 1 }
prop2={ 2 }
/>
} I could make a separate issue for this if necessary. |
I've also experienced these issues. Any idea what steps we could take to get moving on a fix? |
Someone coming forward with a PR would be helpful; however, #1317 may have mitigated this and isn't yet released, afaik. |
A PR with failing test cases would be most helpful. |
I've pushed up a branch with failing tests, in case anyone can pick this up. |
Prior related issues:
#540
#625
Patterns:
Expected behavior:
All of these patterns properly validate and flag no errors.
Actual behavior:
All of these patterns flag errors for lines following and indented after the ternary result clauses (after ? and : lines).
The text was updated successfully, but these errors were encountered: