File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ module.exports = {
382
382
callee . object . type === 'Identifier' &&
383
383
callee . object . name === 'Vue' &&
384
384
callee . property . type === 'Identifier' &&
385
- callee . property . name === 'component' &&
385
+ ( callee . property . name === 'component' || callee . property . name === 'mixin' ) &&
386
386
node . arguments . length &&
387
387
node . arguments . slice ( - 1 ) [ 0 ] . type === 'ObjectExpression'
388
388
Original file line number Diff line number Diff line change @@ -120,6 +120,12 @@ function invalidTests (ext) {
120
120
parserOptions,
121
121
errors : [ makeError ( 1 ) ]
122
122
} ,
123
+ {
124
+ filename : `test.${ ext } ` ,
125
+ code : `Vue.mixin({})` ,
126
+ parserOptions,
127
+ errors : [ makeError ( 1 ) ]
128
+ } ,
123
129
{
124
130
filename : `test.${ ext } ` ,
125
131
code : `
You can’t perform that action at this time.
0 commit comments