Introducing ESLint to your codebase smoothly

When adding a linter to an existing codbase, my methodology is as follows: Create lint config files and approve them with the team (people have strong opinions about tab widths), add them to the repo Run the linter a single time over the entire codebase, autofixing what it can, and adding comments to ignore what it can’t. Add some pre-commit / pre-merge rule to run the linter and preventing new…