We have some tooling setup to enforce code style and keep everything organized.
We have git hooks that run on commit and push. If your hooks aren't running run:
$ yarn fix-githooks
Prettier is what helps us to enforce code style. If your githook fails, the best solution is to run
$ yarn prettier:write
The best thing to do would be to install an extension on your code editor to auto prettify on save.
It's ok to upgrade prettier, just make sure to only use exact versions in the package json. If someone doing dev has a different version of prettier, they may conflict and cause you headaches.
This is helps with catching errors before you commit them. You should install a linter on your code editor, but the githooks will also catch any errors es-lint might find.