-
-
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 behaviour with ternaries #907
Comments
Yep, it's really critical #901 |
@yannickcr This issue is anything but fixed. Using 6.10.0, I'm getting this:
in this code:
which I find indented reasonably. Linter expects it to look like this:
|
I have the same issue, our code still heavily affected by this, and we can't update from 6.3.0 for the reason that this gives a bunch of errors. Can we at least reopen that? |
Actually NVM, the problem was related to a different issue, seems like |
Upgrading from v6.3.0 to v6.4.0 made a perfectly sensible way of doing ternary operators in JSX fail linting due to indentation (did not throw error in 6.3.0).
This:
is supposedly incorrect.
Instead, the linter suggests you should use this, which doesn't make sense:
The text was updated successfully, but these errors were encountered: