File tree 2 files changed +16
-18
lines changed
2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ function create (context) {
114
114
} )
115
115
}
116
116
} ,
117
- utils . executeOnVueComponent ( context , ( obj ) => {
117
+ utils . executeOnVue ( context , ( obj ) => {
118
118
const computedProperties = utils . getComputedProperties ( obj )
119
119
120
120
computedProperties . forEach ( cp => {
Original file line number Diff line number Diff line change @@ -11,24 +11,22 @@ function create (context) {
11
11
// Public
12
12
// ----------------------------------------------------------------------
13
13
14
- return Object . assign ( { } ,
15
- utils . executeOnVueComponent ( context , ( obj ) => {
16
- obj . properties
17
- . filter ( p =>
18
- p . type === 'Property' &&
19
- p . key . type === 'Identifier' &&
20
- p . key . name === 'data' &&
21
- p . value . type !== 'FunctionExpression' &&
22
- p . value . type !== 'Identifier'
23
- )
24
- . forEach ( cp => {
25
- context . report ( {
26
- node : cp . value ,
27
- message : '`data` property in component must be a function'
28
- } )
14
+ return utils . executeOnVueComponent ( context , ( obj ) => {
15
+ obj . properties
16
+ . filter ( p =>
17
+ p . type === 'Property' &&
18
+ p . key . type === 'Identifier' &&
19
+ p . key . name === 'data' &&
20
+ p . value . type !== 'FunctionExpression' &&
21
+ p . value . type !== 'Identifier'
22
+ )
23
+ . forEach ( cp => {
24
+ context . report ( {
25
+ node : cp . value ,
26
+ message : '`data` property in component must be a function'
29
27
} )
30
- } )
31
- )
28
+ } )
29
+ } )
32
30
}
33
31
34
32
// ------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments