v-bind should not be used on Vue directives
This rule applies when
v-bind is used on Vue directives.
There is no need to use
v-bind is used, the directive will not work as intended because it is recognized as a plain attribute.
Noncompliant Code ExampleView with compliant examples side by side
<template> <div :class="fooClass" :v-if="isFoo"> <!-- VUE_V_BIND_ON_DIRECTIVE alarm because 'v-bind' is used on 'v-if' directive. --> Foo </div> </template>
Compliant Code ExampleView with noncompliant examples side by side
<template> <div :class="fooClass" v-if="isFoo"> Foo </div> </template>
This rule was introduced in DeepScan 1.17.0-beta.