Make hostiles passive to each other no matter the condition?

how would I make it where hostile mobs will not fight each other no matter what happens? Like a skeleton will not anger a zombie if it shot it. And would I have to edit each mob individually?

Continue to help post