Skip to content

Commit f1ad281

Browse files
committed
chore: test ci fail with eslint
1 parent 7d4d4bc commit f1ad281

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/rules/prefer-find-by.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ function findRenderDefinitionDeclaration(
3333
return null;
3434
}
3535

36-
const variable = scope.variables.find((v: Scope.Variable) => query === v.name);
36+
const variable = scope.variables.find(
37+
(v: Scope.Variable) => query === v.name
38+
);
3739

3840
if (variable) {
3941
const def = variable.defs.find(({ name }) => name.name === query);
4042
return def.name;
4143
}
44+
const unused = 2;
4245

4346
return findRenderDefinitionDeclaration(scope.upper, query);
4447
}

0 commit comments

Comments
 (0)