Organizations that have large JavaScript code bases have invested heavily in code quality tools. This includes investments in configuring tools like ESLint. The great part about using a standard set of configuration values for enforcing code quality is that you don't have any discrepancies between developers due to a slight configuration difference.
ESLint allows you to install and use npm packages as configuration settings to use and extend. A popular choice is the Airbnb standard. Let's use the ESLint init tool again to get started with Airbnb JavaScript code quality standards. First, run the init tool again:
npm run lint -- --init
The first question asks you how you want to configure ESLint. Instead of answering questions, you can choose a guide:
? How would you like to configure ESLint?
Answer questions about your style
› Use...