npm i eslint@latest --save-dev

Go to project dir and run:

./node_modules/.bin/eslint --init

Answer questions, next answers will configure Airbnb styleguide:

8e9be411.png

ec399a96.png

e7ca6874.png

123efdf1.png

Use:

./node_modules/.bin/eslint src/*