Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
refactor: use prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Dec 10, 2018
1 parent 7edf141 commit acb5db2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rules/no-this-in-fetch-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acb5db2

Please # to comment.