ISIS just declared Lebanon part of the Islamic State. Hezbollah are Shiites and hate ISIS. So it’s a temporary alliance until ISIS is defeated, then they take over for good.
ISIS fights everyone; al-Qaeda fights everyone; Hezbollah fights whomever their Iranian master tells them to fight.