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

Improve error range for vue/max-props #2532

Merged

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
18 checks passed
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