This is Mediacurrent's ESLint config for React projects.
npx install-peerdeps --dev @mediacurrent/eslint-config-react
Add the following to your .eslintrc
:
"extends": "@mediacurrent/eslint-config-react"
For formatting using these rules to take place automatically on commit, follow the steps outlined here in Prettier setup.