Eslint config for React and React Native projects. Contains recommended rules extended from airbnb, airbnb/hooks, plugin:react, plugin:react-hooks. Added rules contain import and prop sorting, as well as most available react-native rules.
- Install the config and all required peer dependencies using the below commands.
npx install-peerdeps --dev @ltatarev/eslint-config-reactor
npx install-peerdeps --dev @ltatarev/eslint-config-react-native- Add
"extends": "@ltatarev/react"or"extends": "@ltatarev/react-native"to your .eslintrc.