Skip to content
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(require-explicit-slots): ignore attribute binding #2591

Merged
merged 5 commits into from
Nov 11, 2024

Conversation

waynzh
Copy link
Member

@waynzh waynzh commented Nov 2, 2024

fixes #2589.

Previously: When node.directive was true, slotName was incorrectly set to 'default', and it would check if it was explicitly defined.
Now: If node.directive is true and is not string literal, the report is simply skipped.

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, I only have one more minor comment.

lib/rules/require-explicit-slots.js Outdated Show resolved Hide resolved
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 very much for your contributions!

@ota-meshi ota-meshi merged commit e13089e into vuejs:master Nov 11, 2024
18 checks passed
@waynzh waynzh deleted the fix/ignore-attribute-binding branch November 11, 2024 04:05
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.

require-explicit-slots reports on slots with dynamic names
3 participants