File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ This rule reports `.sync` modifier on `v-bind` directives in the following cases
21
21
``` vue
22
22
<template>
23
23
<!-- ✓ GOOD -->
24
+ <MyComponent v-bind:aaa.sync="foo"/>
25
+ <MyComponent :aaa.sync="foo"/>
26
+
27
+ <div v-for="todo in todos">
28
+ <MyComponent v-bind:aaa.sync="todo.name"/>
29
+ <MyComponent :aaa.sync="todo.name"/>
30
+ </div>
31
+
32
+ <!-- ✗ BAD -->
24
33
<MyComponent v-bind:aaa.sync="foo + bar" />
25
34
<MyComponent :aaa.sync="foo + bar" />
26
35
@@ -31,15 +40,6 @@ This rule reports `.sync` modifier on `v-bind` directives in the following cases
31
40
<MyComponent v-bind:aaa.sync="todo" />
32
41
<MyComponent :aaa.sync="todo" />
33
42
</div>
34
-
35
- <!-- ✗ BAD -->
36
- <MyComponent v-bind:aaa.sync="foo"/>
37
- <MyComponent :aaa.sync="foo"/>
38
-
39
- <div v-for="todo in todos">
40
- <MyComponent v-bind:aaa.sync="todo.name"/>
41
- <MyComponent :aaa.sync="todo.name"/>
42
- </div>
43
43
</template>
44
44
```
45
45
</eslint-code-block >
You can’t perform that action at this time.
0 commit comments