You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What rule do you want to change?
vue/no-unregistered-components
Does this change cause the rule to produce more or fewer warnings?
fewer warnings
How will the change be implemented? (New option, new default behavior, etc.)?
My idea was to add the argument ignoreRecursive to the rule. If true, it would check the component's name against the name of the component it's inserted into (for this, the parent component needs to have its name property set), and, if they're the same, do not warn.
Please provide some example code that this change will affect:
What does the rule currently do for this code?
It marks the recursive Note component inserted in the template with a warning.
What will the rule do after it's changed?
The warning would not appear in recursive components, as the reference is in the name property, so it is self-registered.
The text was updated successfully, but these errors were encountered:
What rule do you want to change?
vue/no-unregistered-components
Does this change cause the rule to produce more or fewer warnings?
fewer warnings
How will the change be implemented? (New option, new default behavior, etc.)?
My idea was to add the argument
ignoreRecursive
to the rule. If true, it would check the component's name against the name of the component it's inserted into (for this, the parent component needs to have itsname
property set), and, if they're the same, do not warn.Please provide some example code that this change will affect:
What does the rule currently do for this code?
It marks the recursive
Note
component inserted in the template with a warning.What will the rule do after it's changed?
The warning would not appear in recursive components, as the reference is in the
name
property, so it is self-registered.The text was updated successfully, but these errors were encountered: