# vue/use-v-on-exact

enforce usage of exact modifier on v-on

  • ⚙️ This rule is included in all of "plugin:vue/vue3-essential", "plugin:vue/essential", "plugin:vue/vue3-strongly-recommended", "plugin:vue/strongly-recommended", "plugin:vue/vue3-recommended" and "plugin:vue/recommended".

# 📖 Rule Details

This rule enforce usage of exact modifier on v-on when there is another v-on with modifier.

<template> <!-- ✓ GOOD --> <button @click="foo" :click="foo"></button> <button v-on:click.exact="foo" v-on:click.ctrl="foo"></button> <!-- ✗ BAD --> <button v-on:click="foo" v-on:click.ctrl="foo"></button> </template>
Now loading...

# 🔧 Options

{
  "vue/use-v-on-exact": ["error"]
}

# 📚 Further Reading

# 🚀 Version

This rule was introduced in eslint-plugin-vue v5.0.0

# 🔍 Implementation

Last Updated: 12/24/2020, 2:51:18 AM