function checkAssignment(node, name, value) {
			const isThis = value.type === "ThisExpression";

			if (aliases.includes(name)) {
				if (!isThis || (node.operator && node.operator !== "=")) {
					reportBadAssignment(node, name);
				}
			} else if (isThis) {
				context.report({
					node,
					messageId: "unexpectedAlias",
					data: { name },
				});
			}
		}
Checks that an assignment to an identifier only assigns 'this' to the
appropriate alias, and the alias is only assigned to 'this'.
@param {ASTNode} node The assigning node.
@param {Identifier} name The name of the variable assigned to.
@param {Expression} value The value of the assignment.
@returns {void}