Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 601 Bytes

use-v-on-exact.md

File metadata and controls

25 lines (18 loc) · 601 Bytes

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

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