Skip to content

Commit d068fa6

Browse files
committed
refactor: remove unneeded compat utility
1 parent 7545c21 commit d068fa6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/utils/compat.ts

-8
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ export const getScope = (
6464
return getSourceCode(context).getScope?.(node) ?? context.getScope();
6565
};
6666

67-
/* istanbul ignore next */
68-
export const getAncestors = (
69-
context: TSESLint.RuleContext<string, unknown[]>,
70-
node: TSESTree.Node,
71-
) => {
72-
return getSourceCode(context).getAncestors?.(node) ?? context.getAncestors();
73-
};
74-
7567
/* istanbul ignore next */
7668
export const getDeclaredVariables = (
7769
context: TSESLint.RuleContext<string, unknown[]>,

0 commit comments

Comments
 (0)