Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 641 Bytes

use-v-on-exact.md

File metadata and controls

27 lines (19 loc) · 641 Bytes

Enforce usage of exact modifier on v-on

  • ⚙️ This rule is included in "plugin:vue/essential".

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