Getting ready

To implement the Airbnb React/JSX Style Guide, we need to install some packages, such as eslint, eslint-config-airbnb, eslint-plugin-babel, and eslint-plugin-react.

I don't like to force anyone to use a specific IDE, but I would like to recommend some of the best editors to work with React.

Installing all the necessary packages:

npm install eslint eslint-config-airbnb eslint-plugin-react eslint-plugin-jsx-a11y
There are some rules of Airbnb React/JSX Style Guide that I prefer not to use or change the default values a little bit, but it depends whether you keep them or remove them.

You can check all the ESLint rules on the official website (https://eslint.org/docs/rules) and all the special React ESLint rules at https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules.

The rules that I prefer not to use or I prefer to change the default values of are as follows: