File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ This rule checks whether every `.sync` modifier on `v-bind` directives is valid.
6
6
7
7
This rule reports ` .sync ` modifier on ` v-bind ` directives in the following cases:
8
8
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> `
12
12
13
13
This rule does not check syntax errors in directives because it's checked by [ no-parsing-error] rule.
14
14
15
+ :-1 : Examples of ** incorrect** code for this rule:
16
+
15
17
``` vue
16
18
<MyComponent v-bind:aaa.sync="foo + bar" />
17
19
<MyComponent :aaa.sync="foo + bar" />
You can’t perform that action at this time.
0 commit comments