Yesterday, I wrote about how your code base should look like one person wrote it, even when you have a team.
A big part of that is having a code style guide that documents team norms around authoring code. But in larger code bases, manually reviewing and enforcing that can become a big time suck.
That’s where tooling can be useful! My favorite tool for this is ESLint.
ESLint’s primary role is as a code linter to catch bugs.
I recently enforced coding standards in our c# code bases.
Basically used an editor config and project properties to enable all analysers and set all rules to warnings. Also set warnings as errors for release builds.
I’ve then been adjusting rules by hand if they’re irritating or wrong.
It’s having great results and has already caught a load of bugs.
But my god do the juniors hate it haha