To reduce the risk, grow onions from seed not sets. Avoid keeping your own shallots over to plant again the next year (the only onions affected on my patch so far are the shallots I saved from last year to plant). Space plants well apart. If watering, do so early morning not last thing in the evening.
Of course, your onions are in this year and none of that advice is any help. You can pick off the affected leaves ( put them out for the black bin rubbish, DON'T compost them! ) and some experienced gardeners say a 'foliar feed' with Bordeaux mixture helps prevent infection.
Bordeaux mixture is available from the Trading Store and from the more specialist garden suppliers. Reports it was to be withdrawn were incorrect.