File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ Nothing.
60
60
61
61
[ no-parsing-error ] : no-parsing-error.md
62
62
63
+ ## :books : Further reading
64
+
65
+ - [ Guide - ` .sync ` Modifier] ( [https://vuejs.org/v2/guide/list.html#v-for-with-a-Component](https://vuejs.org/v2/guide/components-custom-events.html#sync-Modifier) )
66
+
63
67
## :mag : Implementation
64
68
65
69
- [ Rule source] ( https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/valid-v-bind-sync.js )
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ module.exports = {
66
66
67
67
create ( context ) {
68
68
return utils . defineTemplateBodyVisitor ( context , {
69
- "VAttribute[directive=true][key.name='bind']" ( node ) {
70
- if ( node . key . modifiers . indexOf ( 'sync' ) < 0 ) {
69
+ "VAttribute[directive=true][key.name.name ='bind']" ( node ) {
70
+ if ( ! node . key . modifiers . map ( mod => mod . name ) . includes ( 'sync' ) ) {
71
71
return
72
72
}
73
73
const element = node . parent . parent
You can’t perform that action at this time.
0 commit comments