Yanotec ESLint config for React-Native apps
Whats included?
- Airbnb config base;
- Prettier;
Setup
- Install the dependencies
npm i -D eslint @yanotec/eslint-config-react-native
- Create a
.eslintrc.json
file extending the config:
for ts project
{
"extends": "@yanotec/eslint-config-react-native/ts-recommended"
}
or js project
{
"extends": "@yanotec/eslint-config-react-native/js-recommended"
}
You can also use a
.eslintrc.js
instead of JSON if you prefer.