function isIgnoredAssignment(node, ignoredVars) {
  if (node.type !== 'ExpressionStatement') return false
  const expr = node.expression
  if (expr.type !== 'AssignmentExpression') return false
  const left = expr.left
  const rootName = getRootObjectName(left)
  return ignoredVars.includes(rootName)
}
Checks if the node is an assignment to an ignored variable.
@param {Node} node
@param {string[]} ignoredVars
@returns {boolean}