function error(column, type = "ReturnStatement") {
	const errorObject = {
		messageId: "returnsValue",
		type,
	};

	if (column) {
		errorObject.column = column;
	}

	return errorObject;
}
Creates an error object.
@param {number} [column] Reported column.
@param {string} [type= "ReturnStatement"] Reported node type.
@returns {Object} The error object.