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
As a result, this rule will be excluded for slots with tags specified as "ignore".
<template>
<!-- still bad -->
<divslot="one"></div>
<!-- good -->
<aslot="two"></div>
<my-componentslot="three"></div>
</template>
What does the rule currently do for this code?
There is no such option.
It’s just applying or not applying the rule, which does not seem flexible to me.
What will the rule do after it's changed?
This option allows explicit and centralized control of where the rule is being ignored.
This is useful for custom elements that have slots as attributes.
Currently, the rule must be turned off or disabled each time it is used.
Additional context
The text was updated successfully, but these errors were encountered:
kazuma0129
changed the title
Add new option to specify tags to ignore rules vue/no-deprecated-slot-attribute
Rule suggestion: Add new option to specify tags to ignore rules vue/no-deprecated-slot-attributeNov 14, 2023
What rule do you want to change?
vue/no-deprecated-slot-attribute
Does this change cause the rule to produce more or fewer warnings?
fewer
How will the change be implemented? (New option, new default behavior, etc.)?
New option
Please provide some example code that this change will affect:
Suppose we have a code like this.
What I would like is an option like this.
Specifically, an option that allows the tag name to be passed as an array.
As a result, this rule will be excluded for slots with tags specified as "ignore".
What does the rule currently do for this code?
There is no such option.
It’s just applying or not applying the rule, which does not seem flexible to me.
What will the rule do after it's changed?
This option allows explicit and centralized control of where the rule is being ignored.
This is useful for custom elements that have slots as attributes.
Currently, the rule must be turned off or disabled each time it is used.
Additional context
The text was updated successfully, but these errors were encountered: