@alpha1beta @M4x For a junction box, I’d prefer other plastics over PLA due to PLA’s very low glass transition temperature. There are flame retardant PETG and other polymer filaments.
ESD safety doesn’t matter for either electronics enclosures or electrical junction boxes outside of laboratory or explosion hazardous environments.