eslint-plugin-sonarjs
Version:
SonarJS rules for ESLint
4 lines (3 loc) • 308 B
TypeScript
import type { TSESTree } from '@typescript-eslint/utils';
export declare function findFirstMatchingAncestor(node: TSESTree.Node, predicate: (node: TSESTree.Node) => boolean): TSESTree.Node | undefined;
export declare function ancestorsChain(node: TSESTree.Node, boundaryTypes: Set<string>): TSESTree.Node[];