How to use the eslint-plugin-sonarjs/lib/utils/nodes.isAssignmentExpression function in eslint-plugin-sonarjs

To help you get started, we’ve selected a few eslint-plugin-sonarjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SonarSource / SonarJS / eslint-bridge / src / rules / no-dead-store.ts View on Github external
isRhs(node: TSESTree.Node) {
    return isAssignmentExpression(this.node) ? this.node.right === node : this.node.init === node;
  }
github SonarSource / SonarJS / eslint-bridge / src / rules / no-dead-store.ts View on Github external
isLhs(node: TSESTree.Node) {
    return isAssignmentExpression(this.node) ? this.node.left === node : this.node.id === node;
  }