consider/think oneself (always) in the right; regard oneself as infallible; be self-opinionated
You ungrateful puppy.
I can't stomach the self-righteous attitude of some managers.
You're too self-righteous to see your own frailties.
A snot-nosed snob.
The self-righteous moralizing of his aunt was ringing in his ears.