You can have 1-2 external links to your competitors, however, use only the official name of their websites as anchor text. Do not link site-wide, only from the homepage.
From my experience, this is the best practice.
It is up to you if you want to use dofollow or nofollow in the href.