Uses eslint 4.x
npm install codestyle --save-dev
Create .eslintrc
file in the root of your project:
-
Generic rules set:
{ "extends": "./node_modules/codestyle/.eslintrc" }
-
React specific rules:
{ "extends": "./node_modules/codestyle/.react-eslintrc" }