ReactJS Components Code Style

This is a little note for developers with which I’m working on projects to keep components and code in common style.

Install eslint and configure

Firstly ensure that eslint is installed with airbnb esconfig:

npm install eslint eslint-config-airbnb eslint-plugin-react babel-eslint --save-dev

Create eslint configure file and add this lines:

Component example

Element example

Post will be updated

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.