From the course: Node.js: Testing and Code Quality

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Configuring ESLint

Configuring ESLint

- [Instructor] Since ESLint requires a configuration, let's create one. The ESLint.org website contains a comprehensive user guide on configuration. I'll give you the highlights and I recommend taking a closer look on your own. There are two ways of configuring ESLint. The first is with configuration files that ESLint complained about. There are three format supported. JavaScript files, JSON and YAML. The files are named .eslintrc. then the extension. Regardless of the file format, the configuration is just an object with properties. The other way to configure ESLint is with JavaScript comments in files, which is used for exceptions to rules. Sometimes rules for the group aren't good for an individual. There's actually more than one way to configure ESLint. And that's with ESLint specific properties in package.json. This can get really messy especially if there's a lot of rules and customization. Also, the…

Contents