While food allergies can trigger eczema, not all foods affect eczema. Common triggers are peanuts, dairy, and eggs.