Skip to content

Commit fc04de6

Browse files
committed
fix lint
1 parent 9018532 commit fc04de6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/rules/jsx-no-bind.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ module.exports = {
123123
blockVariableNameSets[blockStart][violationType].add(variableName);
124124
}
125125

126-
function getBlockStatementAncestors(node) {
126+
function getBlockStatementAncestors() {
127127
return context.getAncestors().filter(
128128
(ancestor) => ancestor.type === 'BlockStatement'
129129
).reverse();
@@ -146,7 +146,7 @@ module.exports = {
146146
}
147147

148148
function findVariableViolation(node, name) {
149-
getBlockStatementAncestors(node).find(
149+
getBlockStatementAncestors().find(
150150
(block) => reportVariableViolation(node, name, block.range[0])
151151
);
152152
}
@@ -157,7 +157,7 @@ module.exports = {
157157
},
158158

159159
FunctionDeclaration(node) {
160-
const blockAncestors = getBlockStatementAncestors(node);
160+
const blockAncestors = getBlockStatementAncestors();
161161
const variableViolationType = getNodeViolationType(node);
162162

163163
if (blockAncestors.length > 0 && variableViolationType) {
@@ -169,7 +169,7 @@ module.exports = {
169169
if (!node.init) {
170170
return;
171171
}
172-
const blockAncestors = getBlockStatementAncestors(node);
172+
const blockAncestors = getBlockStatementAncestors();
173173
const variableViolationType = getNodeViolationType(node.init);
174174

175175
if (

lib/rules/no-unknown-property.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ function tagNameHasDot(node) {
482482
);
483483
}
484484

485+
// eslint-disable-next-line valid-jsdoc
485486
/**
486487
* Get the standard name of the attribute.
487488
* @param {String} name - Name of the attribute.

0 commit comments

Comments
 (0)