eslint-plugin-sonarjs
Version:
SonarJS rules for ESLint
9 lines (8 loc) • 404 B
TypeScript
import { Node } from "estree";
import { SourceCode } from "eslint";
/**
* 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: Node | Node[], second: Node | Node[], sourceCode: SourceCode): boolean;