Skip to content

Commit 142120f

Browse files
committed
update doc
1 parent e23f506 commit 142120f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/rules/valid-v-bind-sync.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ This rule checks whether every `.sync` modifier on `v-bind` directives is valid.
66

77
This rule reports `.sync` modifier on `v-bind` directives in the following cases:
88

9-
- The directive does not have the attribute value which is valid as LHS. E.g. `<MyComponent v-bind:aaa.sync="foo() + bar()" />`
10-
- The directive is on non Vue-components. E.g. `<input v-bind:aaa.sync="foo"></div>`
11-
- The directive's reference is iteration variables. E.g. `<div v-for="x in list"><MyComponent v-bind:aaa.sync="x" /></div>`
9+
- The `.sync` modifier does not have the attribute value which is valid as LHS. E.g. `<MyComponent v-bind:aaa.sync="foo() + bar()" />`
10+
- The `.sync` modifier is on non Vue-components. E.g. `<input v-bind:aaa.sync="foo"></div>`
11+
- The `.sync` modifier's reference is iteration variables. E.g. `<div v-for="x in list"><MyComponent v-bind:aaa.sync="x" /></div>`
1212

1313
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
1414

15+
:-1: Examples of **incorrect** code for this rule:
16+
1517
```vue
1618
<MyComponent v-bind:aaa.sync="foo + bar" />
1719
<MyComponent :aaa.sync="foo + bar" />

0 commit comments

Comments
 (0)