UNPKG

eslint-plugin-sonarjs

Version:
8 lines (7 loc) 449 B
import type { TSESTree, TSESLint } from '@typescript-eslint/utils'; /** * Equivalence is implemented by comparing node types and their tokens. * Classic implementation would recursively compare children, * but "estree" doesn't provide access to children when node type is unknown */ export declare function areEquivalent(first: TSESTree.Node | TSESTree.Node[], second: TSESTree.Node | TSESTree.Node[], sourceCode: TSESLint.SourceCode): boolean;