Comment by typpilol
Honestly the best way to get good code at least with typescript and JavaScript is to have like 50 eslint plugins
That way it constantly yells at sonnet 4 to get the code at least in a better state.
If anyone is curious I have a massive eslint config for typescript that really gets good code out of sonnet.
But before I started doing this the code it wrote was so buggy and it was constantly trying to duplicate functions into separate files etc