File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,12 @@ module.exports = {
78
78
url : 'https://github.com/vuejs/eslint-plugin-vue/blob/v5.0.0-beta.3/docs/rules/valid-v-bind-sync.md'
79
79
} ,
80
80
fixable : null ,
81
- schema : [ ]
81
+ schema : [ ] ,
82
+ messages : {
83
+ unexpectedInvalidElement : "'.sync' modifiers aren't supported on <{{name}}> non Vue-components." ,
84
+ unexpectedNonLhsExpression : "'.sync' modifiers require the attribute value which is valid as LHS." ,
85
+ unexpectedUpdateIterationVariable : "'.sync' modifiers cannot update the iteration variable '{{varName}}' itself."
86
+ }
82
87
} ,
83
88
84
89
create ( context ) {
@@ -94,7 +99,7 @@ module.exports = {
94
99
context . report ( {
95
100
node,
96
101
loc : node . loc ,
97
- message : "'.sync' modifiers aren't supported on <{{name}}> non Vue-components." ,
102
+ messageId : 'unexpectedInvalidElement' ,
98
103
data : { name }
99
104
} )
100
105
}
@@ -104,7 +109,7 @@ module.exports = {
104
109
context . report ( {
105
110
node,
106
111
loc : node . loc ,
107
- message : "'.sync' modifiers require the attribute value which is valid as LHS."
112
+ messageId : 'unexpectedNonLhsExpression'
108
113
} )
109
114
}
110
115
@@ -119,7 +124,7 @@ module.exports = {
119
124
context . report ( {
120
125
node,
121
126
loc : node . loc ,
122
- message : "'.sync' modifiers cannot update the iteration variable '{{varName}}' itself." ,
127
+ messageId : 'unexpectedUpdateIterationVariable' ,
123
128
data : { varName : id . name }
124
129
} )
125
130
}
You can’t perform that action at this time.
0 commit comments