Skip to content

Commit

Permalink
fix params
Browse files Browse the repository at this point in the history
  • Loading branch information
y-hsgw committed Jul 6, 2024
1 parent 4467e3a commit 4d4cd3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rules/jsx-no-bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ module.exports = {
}

function findVariableViolation(node, name) {
getBlockStatementAncestors().find(
getBlockStatementAncestors(node).find(
(block) => reportVariableViolation(node, name, block.range[0])
);
}
Expand All @@ -158,7 +158,7 @@ module.exports = {
},

FunctionDeclaration(node) {
const blockAncestors = getBlockStatementAncestors();
const blockAncestors = getBlockStatementAncestors(node);
const variableViolationType = getNodeViolationType(node);

if (blockAncestors.length > 0 && variableViolationType) {
Expand All @@ -170,7 +170,7 @@ module.exports = {
if (!node.init) {
return;
}
const blockAncestors = getBlockStatementAncestors();
const blockAncestors = getBlockStatementAncestors(node);
const variableViolationType = getNodeViolationType(node.init);

const nodeParent = /** @type {import("estree").VariableDeclaration} */(node.parent);
Expand Down

0 comments on commit 4d4cd3c

Please sign in to comment.