We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85558dc commit becfb8aCopy full SHA for becfb8a
lib/utils/index.js
@@ -382,7 +382,7 @@ module.exports = {
382
callee.object.type === 'Identifier' &&
383
callee.object.name === 'Vue' &&
384
callee.property.type === 'Identifier' &&
385
- callee.property.name === 'component' &&
+ (callee.property.name === 'component' || callee.property.name === 'mixin') &&
386
node.arguments.length &&
387
node.arguments.slice(-1)[0].type === 'ObjectExpression'
388
tests/lib/utils/vue-component.js
@@ -120,6 +120,12 @@ function invalidTests (ext) {
120
parserOptions,
121
errors: [makeError(1)]
122
},
123
+ {
124
+ filename: `test.${ext}`,
125
+ code: `Vue.mixin({})`,
126
+ parserOptions,
127
+ errors: [makeError(1)]
128
+ },
129
{
130
filename: `test.${ext}`,
131
code: `
0 commit comments