Skip to content

Commit 8adbdfe

Browse files
committed
Add documentation
1 parent 6ee0fe0 commit 8adbdfe

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: docs/rules/use-v-on-extact.md

+27
Original file line numberDiff line numberDiff line change
@@ -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+
```html
19+
<template>
20+
<button v-on:click="foo" v-on:click.ctrl="foo"></button>
21+
</template>
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

Comments
 (0)