We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cc3676 commit 83538d3Copy full SHA for 83538d3
lib/utils/compat.ts
@@ -64,14 +64,6 @@ export const getScope = (
64
return getSourceCode(context).getScope?.(node) ?? context.getScope();
65
};
66
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
-
75
/* istanbul ignore next */
76
export const getDeclaredVariables = (
77
context: TSESLint.RuleContext<string, unknown[]>,
0 commit comments