Skip to content

Commit 78c203d

Browse files
committed
feat: change target node
1 parent 00dc589 commit 78c203d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules/no-use-computed-property-like-method.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ module.exports = {
223223
propertyMap[thisMember].valueType.type !== 'Function'
224224
) {
225225
context.report({
226-
node: node.parent,
227-
loc: node.parent.loc,
226+
node: node.parent.parent,
227+
loc: node.parent.parent.loc,
228228
messageId: 'unexpected',
229229
data: {
230230
likeProperty: `this.${thisMember}`,

0 commit comments

Comments
 (0)