React Design Patterns and Best Practices(Second Edition)
上QQ阅读APP看书,第一时间看更新

Installation

First of all, we have to install ESLint as follows:

 npm install --global eslint 

Once the executable is installed, we can run it with the following command:

  eslint source.js

The output will tell us if there are errors within the file.

When we install and run it for the first time, we do not see any errors because it is completely configurable and it does not come with any default rules.