-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Object attribute assigned fat arrow function with implicit return of a ternary causes next line to indent #854
Comments
Again, are you sure? I don't see this when I run with the new setting against that input. 😄 |
In just a minute, I'll have the new code up on the website and you should be able to double check issues you find. |
This one i'm pretty sure about! I saw this issue but not the other one i mentioned once i had re-installed against the most recent hash. I will re-test once the code is live though to verify. |
Okay I've done some additonal testing, it seems this only occurs if the code is inside a function being passed as an argument to another function, i've updated the description with additional notes and specifications for reproduction. I was able to reproduce it in a blank file with the above code in it. |
Excellent! Thanks! |
So, both of these work, but the one you provided breaks. Should be easy enough to track down. Thanks again. test(() => {
var a = {}
a.what = () => true ? 1 : 2;
a.thing = () => {
// some code
}
})
test(() => {
var a = {}
a.what = () => true ? 1 : 2
a.thing = () => {
a()
}
}) |
Interesting, this one also works FYI: test(() => {
var a = {}
a.what = () => (true ? 1 : 2)
a.thing = () => {
// some code
}
}) |
Yeah, that makes sense. The |
Thanks, @bitwiseman !! |
For example:
Original:
Becomes this:
Notes:
The text was updated successfully, but these errors were encountered: