vue/require-toggle-inside-transition
require control the display of the content inside
<transition>
- ⚙️ This rule is included in all of
"plugin:vue/vue3-essential"
,*.configs["flat/essential"]
,"plugin:vue/vue3-strongly-recommended"
,*.configs["flat/strongly-recommended"]
,"plugin:vue/vue3-recommended"
and*.configs["flat/recommended"]
.
📖 Rule Details
This rule reports elements inside <transition>
that do not control the display.
🔧 Options
json
{
"vue/require-toggle-inside-transition": ["error", {
"additionalDirectives": []
}]
}
additionalDirectives
(string[]
) ... Custom directives which will satisfy this rule in addition tov-show
andv-if
. Should be added without thev-
prefix.
additionalDirectives: ["dialog"]
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v7.0.0