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
From the course: Node.js: Testing and Code Quality
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Standardizing with EditorConfig8m 23s
-
(Locked)
Adding EditorConfig to a project and IDE4m 3s
-
(Locked)
Comparing JavaScript linters4m 56s
-
(Locked)
Installing ESLint3m 47s
-
(Locked)
Configuring ESLint6m 23s
-
(Locked)
Extending an ESLint shareable config5m 5s
-
(Locked)
Linting your codebase6m 14s
-
(Locked)
Fixing code in VSC with ESLint7m 3s
-
(Locked)
Challenge: Create a shareable ESLint config51s
-
(Locked)
Solution: Create a shareable ESLint config5m 25s
-
(Locked)
-
-
-
-