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 desired package using the below commands.
npm install --dev @ltatarev/eslint-config-react
or
npm install --dev @ltatarev/eslint-config-react-native
- Add
"extends": "@ltatarev/react"
or"extends": "@ltatarev/react-native"
to your .eslintrc.