课程: JavaScript: Best Practices for Data

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Understanding ESLint

Understanding ESLint

- [Instructor] ESLint is a utility that flags deviations from selected best practices right in your editor as you code. ESLint is widely used by Java script 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 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 its warnings when they're not relevant to your preferences. With ESLint installed I could run a configuration utility, however, this builds out a package that JSON file and associated modules that I don't need here. So instead, ESLint supports rules written using Java script itself, as well as YAML or JSON.…

内容