Driven by the impact of climate change and the pursuit of reducing CO2 emissions, the demand for sustainable energy technologies is increasing globally. Lithium-ion batteries (LIBs) are widely used in portable electronic devices and electromobility-related applications 1 . However, these batteries suffer from safety issues due to the use of flammable organic liquid electrolytes.