diff --git a/lib/rules/no-textarea-mustache.js b/lib/rules/no-textarea-mustache.js index b7a12bd8e..29c8a4da2 100644 --- a/lib/rules/no-textarea-mustache.js +++ b/lib/rules/no-textarea-mustache.js @@ -22,7 +22,7 @@ module.exports = { create(context) { return utils.defineTemplateBodyVisitor(context, { /** @param {VExpressionContainer} node */ - "VElement[name='textarea'] VExpressionContainer"(node) { + "VElement[rawName='textarea'] VExpressionContainer"(node) { if (node.parent.type !== 'VElement') { return } diff --git a/tests/lib/rules/no-textarea-mustache.js b/tests/lib/rules/no-textarea-mustache.js index 823580204..ac34728e5 100644 --- a/tests/lib/rules/no-textarea-mustache.js +++ b/tests/lib/rules/no-textarea-mustache.js @@ -22,6 +22,10 @@ tester.run('no-textarea-mustache', rule, { { filename: 'test.vue', code: '' + }, + { + filename: 'test.vue', + code: '' } ], invalid: [ @@ -30,6 +34,11 @@ tester.run('no-textarea-mustache', rule, { code: '', errors: ["Unexpected mustache. Use 'v-model' instead."] }, + { + filename: 'test.vue', + code: '', + errors: ["Unexpected mustache. Use 'v-model' instead."] + }, { filename: 'test.vue', code: '',