Let's take as an example Di Francesco et al. but every source I am aware of is doing the same.
First of all, the Virasoro algebra is usually defined as
$$[L_m,L_n] = (m - n)L_{m+n} + \frac{c}{12} m (m^2 -1) \delta_{m+n,0}.\tag{6.24}$$
A field is primary if $$[L_n, \Phi_i (z, \bar{z})]= z^{n+1} \partial_z \Phi_i(z,\bar{z}) + h_i (n+1) z^n \Phi_i(z,\bar{z})\tag{6.28}$$ and similarly for the antiholomorphic part.
Then the authors continue:
"The generators $L_m$ $(m > 0)$ also increase the conformal dimension, by virtue of the Virasoro algebra (6.24):
$$[L_0, L_{-m}] = m L_{-m}. \quad\quad (6.35)"$$
However, given $(6.28)$, I get $$ [[L_m,L_n], f(z)]= - [ f(z),[L_m,L_n]] = [L_m,[L_n,f(z)]]+[L_n,[f(z),L_m]]\\ =[L_m,[L_n,f(z)]]-[L_n,[L_m,f(z)]] $$ $$[L_m,[L_n,f(z)]]=[L_m,z^{n+1}\partial_z f(z)+h(n+1) z^n f(z)]\\=z^{m+n+1}(n+1)\partial f + z^{m+n+2}\partial^2 f + h(n+1)n z^{m+n} f +h(n+1) z^{m+n+1}\partial f +h(m+1)z^{m+n+1}\partial f + h^2(m+1)(n+1) z^{m+n}f. $$
Thus, $$ [[L_m,L_n],f(z)]=(n-m)z^{m+n+1}\partial f+ (n-m)h(m+n+1)z^{m+n}f=(n-m)[L_{m+n},f(z)].$$ But if $(6.24)$ is correct, then $$ [[L_m,L_n],f(z)]=(m-n)[L_{m+n},f(z)].$$
EDIT
So my question is the following:
is my reasoning correct and Di Francesco and other sources should be corrected, or there is a flaw with such a consistency check which I have given above.