diff --git a/lib/rules/no-this-in-fetch-data.js b/lib/rules/no-this-in-fetch-data.js index f776569..52f96b9 100644 --- a/lib/rules/no-this-in-fetch-data.js +++ b/lib/rules/no-this-in-fetch-data.js @@ -63,10 +63,10 @@ module.exports = { Super: markThisUsed, ...utils.executeOnVue(context, obj => { for (const funcName of HOOKS) { - const func = utils.getFunctionWithName(obj, funcName) - if (func && func.value && forbiddenNodes.includes(func.value)) { + const prop = utils.getFunctionWithName(obj, funcName) + if (prop && prop.value && forbiddenNodes.includes(prop.value)) { context.report({ - node: func.key, + node: prop.key, messageId: 'noThis', data: { funcName