From the course: ESLint: Customizing Styles

Unlock the full course today

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

Solution: Customize ESLint styles

Solution: Customize ESLint styles

From the course: ESLint: Customizing Styles

Start my 1-month free trial

Solution: Customize ESLint styles

(upbeat electronic music) - [Instructor] So, sitting down with this challenge project. The first thing I notice, is I've got some pretty common rules like no unused vars that are not being flagged here. In fact, aside from the counter variable, all my other variables aren't used anywhere else. So they should all be flagged at this point. So, that makes me wonder what I'm using as a baseline here. And indeed, back in eslintrc I don't have any extends value at all. So, I'm just going to go with eslint recommended, and so we want the extends key and eslint:, lint:recommended as the value. Save that, and go back here. Now, I'm still not seeing an issue, but I do have no-unused-vars turned off. I didn't notice that before. So I looked for this for the wrong reasons, but now I at least know that I have my baseline setup. And so let's start going down the list here. So, I want to use the comma-dangle rule here, and I…

Contents