UNPKG

@exadel/eslint-config-esl

Version:

Shared ESLint config used by ESL (@exadel/esl) team. Internal projects usage.

10 lines (9 loc) 545 B
import type { Rule } from 'eslint'; import type { BaseNode } from './ast.traverse'; export * from './ast.traverse'; /** Finds the root node in the tree */ export declare function findRoot(node: BaseNode): BaseNode; /** Collects all current and nested AST nodes */ export declare function collectAll(context: Rule.RuleContext, root: BaseNode | null | undefined): BaseNode[]; /** Finds all AST nodes by shape */ export declare function findAllBy(context: Rule.RuleContext, root: BaseNode | null | undefined, shape: Partial<BaseNode>): BaseNode[];