GitHunt
OL

oleglegun/react-setup

React Setup

  1. Prettier
    Import idea/watchers.xml in Settings/Tools/File Watchers

yarn add -D prettier@latest

{
    "scripts": {
            "format": "prettier --config .prettierrc --write 'src/**/*.js'"
        }
}
  1. ESLint
yarn add -D eslint \
            eslint-config-react-app \
            eslint-config-prettier \
            eslint-plugin-flowtype \
            eslint-plugin-react \
            eslint-plugin-import \
            eslint-plugin-jsx-a11y \
            eslint-plugin-prettier

Contributors

Created February 21, 2017
Updated October 21, 2017
oleglegun/react-setup | GitHunt