Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 737 Bytes

use-v-on-exact.md

File metadata and controls

27 lines (19 loc) · 737 Bytes

enforce usage of exact modifier on v-on (vue/use-v-on-exact)

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

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

👍 Examples of correct code for this rule:

<template>
  <button @click="foo" :click="foo"></button>
  <button v-on:click.exact="foo" v-on:click.ctrl="foo"></button>
</template>

👎 Examples of incorrect code for this rule:

<template>
  <button v-on:click="foo" v-on:click.ctrl="foo"></button>
</template>

Related rules