Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRule Proposal: vue/no-deprecated-router-link-tag-prop #1306
Comments
Thank you for suggesting the rule. However, rules that disallow deprecated features has I think the documentation for this rule should include a link to the RFC. The rule checks only the RouterLink component by default. Rule options allow users to add more components they want to check. Users can also use this option to check the NuxtLink component. |
Thanks for the feedback! I've changed the name accordingly |
Please describe what the rule should do:
Using the
tag
property forRouterLink
orNuxtLink
is usually a bad idea because it removes out-of-the-box accessibility (further: vuejs/vue-router-next#148 (comment)). This rule should throw an error if people try to change the tag.PS: The
tag
prop will be removed in future majors of vue-router.What category should the rule belong to?
[ ] Enforces code style (layout)
[x] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about: