Funny how you bash angular in particular, while its the most stable/refined framework out there. And you don't even mention the hot mess which is react and is actually a pin in enterprise environment.
But in general, frameworks are there to keep it clean and a known structure of projects and simply speed up some processes - if the codebase is bad its because they hired cheap workforce instead of spending a bit more and get a more quality product in less time.
Also angular 2+ is basically the same, so the point that you need to search for ng2, 5, 10 is just funny :)