CE-3209: Refine eslint and prettier setup
Clean up our eslint and prettier setup. Removed redundant rules and some that were uncecessary imo. Feel free to look through the manual rules removed and see if you think they are necessary to keep. Remember that some of them were already coming from the extends array.
I also has to refactor a couple of files in order to pass the pre-commit. Duplicate imports, nested terneries etc.