Linear inviscid damping and enhanced viscous dissipation of shear flows by the conjugate operator method