In addtion, it helps to unify your code styles such as how to use parentheses and spaces, etc.
In this article, I will explain the ESLint configuration for checking React.js written with ES6+.
Aribnb’s style guide is really great and easy to understand. ESLint also check your code based on the style guide.
Install following libraries:
ESLint configuration is as follows:
Please see moore detail Configuring ESLint.
overcommit is a git hook management tool which can execute various command before git commit, push or etc.
The following configuration is how to use ESLint with overcommit.
At first, overcommit configuration like this:
Ater the configuration, execute
bundle exec overcommit --sign, so ESLint will be executed automatically before
The configuration of free CI wercker is as follows: