EE was assisting supervisor replacing a diesel fuel nozzle (@ the West Shop diesel tank). Upon disconnection of the hose from the nozzle, residual diesel came out of hose and sprayed onto the EEs hardhat, which dripped into the EEs right eye. EEs eye was flushed by co-worker. EE sought medical treatment and given a prescription for eye meds to treat afterwards.