In this chapter, we will discuss the role of ESLint. ESLint has to do with code quality. When you work on a team, every team member will bring their own little quirks and ideas on the best way to write JavaScript. Even if your team has some clear-cut rules on specific coding styles and how to write your code, how do you guarantee that each team member will follow the rules? How do you make sure that they deliver consistent code quality? We are human after all, which means that we all have those days when we do our best, but simply forget about one little thing that we had to pay attention to.
Given a long enough period of time, our team will begin producing stylistically inconsistent code. The next thing that happens is, everyone in the team starts perceiving the JavaScript style guide as a suggestion, not something that you should...