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.
…why not both? An auto-formatter for personal use, a linter for CI checks on PRs.
I agree : CI is required as a safety belt and then contributers can choose the workflow they prefer : format on save, manual invoke, precommit, …