From the course: ESLint: Integrating with Your Workflow

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Solution: Add ESLint to a project

Solution: Add ESLint to a project

From the course: ESLint: Integrating with Your Workflow

Start my 1-month free trial

Solution: Add ESLint to a project

(upbeat music) - [Instructor] The first thing that I want to do in building out this project, I need to run npm i to actually get all of the dependencies installed, so I've done that already and got my node modules in place for this project. Next up, I actually have to install eslint as a dependency in this project. So that's npm install eslint and I'm going to do a save-dev to save it to this particular project. And so that's going to finish installing and when it's done, the next thing I need to do is actually set it up. So there I'll use an npx eslint --init. So this is going to take me through that set of questions that help me get ESLint configured. Now, I want to go ahead and use code style as well as syntax and problem checking so I'm going to choose that third option. I'm going to use modules. I'm not using a framework, I'm not using typescript, I'm doing front-end code in the browser and I want to pick…

Contents