From the course: Node.js: Testing and Code Quality
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Fixing code in VSC with ESLint
From the course: Node.js: Testing and Code Quality
Fixing code in VSC with ESLint
- [Instructor] VC code supports ESLint with an extension, and it can even fix code automatically. The ESLint extension by Dirk Baumer uses the ESLint library installed in the current workspace folder. Additionally, ESLint will report errors and warnings within the IDE as you're writing code. Another feature is that the extension can automatically fix code when you save a file. Let's get it installed. Switch over to visual studio code. Let's clean up our workspace a little bit by closing out the ESLint ignore file, then, over in the activity bar on the left, click extensions. We're going to search for D B A E U M E R, and we're going to select ESLint. When found, click the install button. That's all we need for now. We can close the extension configuration and then go back to the Explorer. Since this is the first time we're running the extension, we're going to need to give it permission. Right here, ESLint is…
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)
-
-
-
-