From acb5db2964277043ffb827c5133eb8284a253b9d Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 10 Dec 2018 14:03:57 +0000 Subject: [PATCH] refactor: use prop name --- lib/rules/no-this-in-fetch-data.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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