I was wondering this myself so I took the liberty to experiment. It turns out that the companion does indeed get restricted by alignment when it comes to choose weapons. However, that is from YOUR alignment. So if you are a darksider rank 3, your companion counts as that, too, and cannot use Lightside weapons.