File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,7 @@ function create (context) {
25
25
if ( ! node ) return
26
26
27
27
forbiddenNodes . forEach ( el => {
28
- if (
29
- el . loc . start . line >= node . value . loc . start . line &&
30
- el . loc . end . line <= node . value . loc . end . line &&
31
- el . loc . start . line === node . value . loc . start . line
32
- ) {
28
+ if ( node . value === el ) {
33
29
context . report ( {
34
30
node : node . key ,
35
31
message : 'Expected to return a value in render function.'
Original file line number Diff line number Diff line change @@ -25,12 +25,7 @@ function create (context) {
25
25
26
26
computedProperties . forEach ( cp => {
27
27
forbiddenNodes . forEach ( el => {
28
- if (
29
- cp . value &&
30
- el . loc . start . line >= cp . value . loc . start . line &&
31
- el . loc . end . line <= cp . value . loc . end . line &&
32
- el . loc . start . line === cp . value . loc . start . line
33
- ) {
28
+ if ( cp . value && cp . value . parent === el ) {
34
29
context . report ( {
35
30
node : el ,
36
31
message : 'Expected to return a value in "{{name}}" computed property.' ,
You can’t perform that action at this time.
0 commit comments