We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ee0fe0 commit 8adbdfeCopy full SHA for 8adbdfe
docs/rules/use-v-on-extact.md
@@ -0,0 +1,27 @@
1
+# Enforce usage of `exact` modifier on `v-on`
2
+
3
+- :gear: This rule is included in `"plugin:vue/essential"`.
4
5
+This rule enforce usage of `exact` modifier on `v-on` when there is another `v-on` with modifier.
6
7
+:+1: Examples of **correct** code for this rule:
8
9
+```html
10
+<template>
11
+ <button @click="foo" :click="foo"></button>
12
+ <button v-on:click.exact="foo" v-on:click.ctrl="foo"></button>
13
+</template>
14
+```
15
16
+:-1: Examples of **incorrect** code for this rule:
17
18
19
20
+ <button v-on:click="foo" v-on:click.ctrl="foo"></button>
21
22
23
24
+## Related rules
25
26
+- [vue/v-on-style](./v-on-style.md)
27
+- [vue/valid-v-on](./valid-v-on.md)
0 commit comments