This should go without saying but... I will say it anyways.
Don't SHARE ANY INFO with him... Don't tell him you are looking for apartmetns, don't tell him you are gonig to expose his affair to his workplace, etc... Just stick to yourself and avoid him baiting you into a fight...