diff --git a/lib/rules/v-for-delimiter-style.js b/lib/rules/v-for-delimiter-style.js
index 3a4944803..f59a43826 100644
--- a/lib/rules/v-for-delimiter-style.js
+++ b/lib/rules/v-for-delimiter-style.js
@@ -42,7 +42,7 @@ module.exports = {
node.left.length > 0
? node.left[node.left.length - 1]
: tokenStore.getFirstToken(node),
- (token) => token.type !== 'Punctuator' || token.value !== ')'
+ (token) => token.type !== 'Punctuator'
)
)
diff --git a/tests/lib/rules/v-for-delimiter-style.js b/tests/lib/rules/v-for-delimiter-style.js
index 350fded17..ebec2df56 100644
--- a/tests/lib/rules/v-for-delimiter-style.js
+++ b/tests/lib/rules/v-for-delimiter-style.js
@@ -35,6 +35,19 @@ tester.run('v-for-delimiter-style', rule, {
filename: 'test.vue',
code: ''
},
+ {
+ // https://github.com/vuejs/vue-eslint-parser/issues/226
+ filename: 'test.vue',
+ code: ''
+ },
+ {
+ filename: 'test.vue',
+ code: ''
+ },
+ {
+ filename: 'test.vue',
+ code: ''
+ },
{
filename: 'test.vue',
code: '',
@@ -58,6 +71,17 @@ tester.run('v-for-delimiter-style', rule, {
}
]
},
+ {
+ filename: 'test.vue',
+ code: '',
+ output: '',
+ errors: [
+ {
+ message: "Expected 'in' instead of 'of' in 'v-for'.",
+ column: 23
+ }
+ ]
+ },
{
filename: 'test.vue',
code: '',