Skip to content

Conversation

@kevsommer
Copy link
Contributor

While trying out the new unreleased props rule, I noticed that the rule only highlights the very first prop if violated, instead of the entire props block. I think this is slightly confusing.

Therefore I changed it to report the parent node and therefore the entire props block.

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.

Makes sense, thank you! 🙂

FYI @ota-meshi: I'm going to merge this without your review because this is such a small uncontroversial change.

@FloEdelmann FloEdelmann changed the title Changes error reporting of max-props rule to highlight entire props node Improve error range for vue/max-props Aug 20, 2024
@FloEdelmann FloEdelmann merged commit 0fbe35e into vuejs:master Aug 20, 2024
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.

2 participants