We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f9aa1 commit 08ca488Copy full SHA for 08ca488
src/util/ast.js
@@ -46,8 +46,9 @@ export const getUpstreamVariables = (
46
const variable = findVariable(context.sourceCode.getScope(node), node);
47
if (!variable) {
48
// I think this only happens when:
49
- // 1. Import statement is missing, or
50
- // 2. ESLint globals are misconfigured
+ // 1. There's genuinely no variable, i.e. `node` is a literal
+ // 2. Import statement is missing
51
+ // 3. ESLint globals are misconfigured
52
return [];
53
}
54
0 commit comments