Appearance
vue/use-v-on-exact
强制在
v-on
上使用exact
修饰符
- ⚙️ 此规则包含在
"plugin:vue/essential"
、*.configs["flat/essential"]
、"plugin:vue/vue2-essential"
、*.configs["flat/vue2-essential"]
、"plugin:vue/strongly-recommended"
、*.configs["flat/strongly-recommended"]
、"plugin:vue/vue2-strongly-recommended"
、*.configs["flat/vue2-strongly-recommended"]
、"plugin:vue/recommended"
、*.configs["flat/recommended"]
、"plugin:vue/vue2-recommended"
和*.configs["flat/vue2-recommended"]
中。
📖 规则详情
当有另一个带有修饰符的 v-on
时,此规则强制在 v-on
上使用 exact
修饰符。
¥This rule enforce usage of exact
modifier on v-on
when there is another v-on
with modifier.
🔧选项
¥🔧 Options
无。
¥Nothing.
👫相关规则
¥👫 Related Rules
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v5.0.0 中引入
¥This rule was introduced in eslint-plugin-vue v5.0.0
🔍代码实现
¥🔍 Implementation