Skip to content

fix(require-explicit-slots): ignore attribute binding - #2591

Merged
ota-meshi merged 5 commits into
vuejs:masterfrom
waynzh:fix/ignore-attribute-binding
Nov 11, 2024
Merged

fix(require-explicit-slots): ignore attribute binding#2591
ota-meshi merged 5 commits into
vuejs:masterfrom
waynzh:fix/ignore-attribute-binding

Conversation

@waynzh

@waynzh waynzh commented Nov 2, 2024

Copy link
Copy Markdown
Member

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.

Comment thread tests/lib/rules/require-explicit-slots.js

@FloEdelmann FloEdelmann left a comment

Copy link
Copy Markdown
Member

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.

Comment thread lib/rules/require-explicit-slots.js Outdated
@FloEdelmann
FloEdelmann requested a review from ota-meshi November 6, 2024 10:56

@ota-meshi ota-meshi left a comment

Copy link
Copy Markdown
Member

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
@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