moralism
/mɒrˈælɪzəm/Definitions
1. noun
the practice of or an attitude of giving excessive importance to moral principles and rules, especially in a way that is seen as narrow or hypocritical
“His moralism led him to judge others more harshly than himself.”