From the course: JavaScript: Best Practices for Code Formatting
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
ESLint - JavaScript Tutorial
From the course: JavaScript: Best Practices for Code Formatting
ESLint
- ESLint is a utility that flags deviations from selected best practices right in your editor as you code. ESLint is widely used by JavaScript developers to catch and correct issues before testing and deploying. Although ESLint allows you to load a default set of rules, one of it's strengths is it's configurability. It's unlikely that you'll want to enforce every one of the default rules in your code or that you'll make precisely the same choices as the defaults. For this reason it's important to understand how to configure ESLint. Otherwise, using it can be an exercise in frustration, as you have to ignore it's warnings when they're not relevant to your preferences. With ESLint installed I could run a configuration utility. However, this builds out a package.json file in associated modules that I don't need here. So instead, ESLint supports rules written using JavaScript itself, as well as yamo or Jason. I'm…
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.