eslint-plugin-sonarjs
Version:
SonarJS rules for ESLint
8 lines (7 loc) • 449 B
TypeScript
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;