Skip to content

Conversation

@waynzh
Copy link
Member

@waynzh waynzh commented Mar 31, 2024

fixes #2037

Before: The judgment of maybeFunction skipped LogicalExpression;
Now: The LogicalExpression will also be included in the judgment of whether it may be a function (by checking it's left and right node); if one of them may be, then calls like methods are allowed.

@waynzh waynzh force-pushed the fix/logic-expression-no-use-computed-property-like-method branch from d516d40 to 796ce2a Compare March 31, 2024 13:41
Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! 🙂

@FloEdelmann FloEdelmann requested a review from ota-meshi April 2, 2024 09:11
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vue/no-use-computed-property-like-method throws an error if you use a function with a nullish coalescing operator (??) in your computed

3 participants