Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isRhs(node: TSESTree.Node) {
return isAssignmentExpression(this.node) ? this.node.right === node : this.node.init === node;
}
isLhs(node: TSESTree.Node) {
return isAssignmentExpression(this.node) ? this.node.left === node : this.node.id === node;
}