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

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…

Contents