Skip to content

Commit 08ca488

Browse files
committed
Update note
1 parent 68f9aa1 commit 08ca488

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/util/ast.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ export const getUpstreamVariables = (
4646
const variable = findVariable(context.sourceCode.getScope(node), node);
4747
if (!variable) {
4848
// I think this only happens when:
49-
// 1. Import statement is missing, or
50-
// 2. ESLint globals are misconfigured
49+
// 1. There's genuinely no variable, i.e. `node` is a literal
50+
// 2. Import statement is missing
51+
// 3. ESLint globals are misconfigured
5152
return [];
5253
}
5354

0 commit comments

Comments
 (0)