Rousseau opposed Hobbes' theory of social contract in his works. But in fact, Rousseau's position on discussing sovereignty is subtle. Because he didn't mention how to regulate sovereignty when it does evil, when talking about national sovereignty, he said that sovereignty is supreme and unshakable. Perhaps in Rousseau's view, the main force of the masses is good, and it looks impeccable based on his nature. But politics is evil, in sovereignty or political science. Hobbes' theory of social contract is strictly realistic.
It goes without saying that both Montesquieu and Locke have contributed to the development of modern democratic system. Needless to say. Because the original intention of their works is to regulate rights and restrict rights. Rousseau's works obviously do not meet this requirement.