From the course: Node.js: Testing and Code Quality
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Standardizing with EditorConfig
From the course: Node.js: Testing and Code Quality
Standardizing with EditorConfig
- [Instructor] So far, we've been discussing concepts and terms. It's time to start cleaning up our code base and find errors using linting. In this chapter, we're going to start by standardizing text editor configurations. We'll add support for the standard to both our project and to VS Code. Once that's in place, we'll start comparing linters to see the advantages of each. With an informed decision, we'll install a linter that should address our needs. We'll step through how to create to the linters configuration then extend an existing shared linter configuration to save time. Then, we'll lint the entire code base and filter the results to be actionable. Finally, we'll set up VS Code to clean code and highlight linter errors. A developers preferred code editor is a badge of honor, and typically a passionate decision. With such a variety of options, how can you maintain coding styles across multiple editors with…
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)
-
-
-
-