How to Add ESLint to Your Project

In another article, I wrote about how fun it was to add linting to a 3-year-old project, discover 856 errors, give up immediately, and downgrade all errors to warnings so I can sleep at night.
2% error rate per line of code – 2 lines with problems for every 100 lines of code – is disheartening as hell. But you know what? You can’t fix a problem you don’t know you have.