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
Fix formatting error on member chain #15915
Conversation
Maybe this is caused by #15806 |
src/language-js/utils/index.js
Outdated
// @ts-expect-error | ||
if (node.object == null) { | ||
// @ts-expect-error | ||
node.object = node.expression.object; | ||
} | ||
// @ts-expect-error | ||
if (node.property == null) { | ||
// @ts-expect-error | ||
node.property = node.expression.property; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fisker This isn't a good. I'm merging this PR as a temporary solution, but do you have any better solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is wrong, should update logic where it's accessing the object/property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may also cause computed
/shorthand
check part result wrong..
Description
Fixes #15912
Checklist
docs/
directory).changelog_unreleased/*/XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨