npm install -D @thesouschef/eslint-config-react-native
In your eslint config file for vanilla JS/TS projects, extend this library like:
extends: [
"@thesouschef/eslint-config",
"@thesouschef/eslint-config-react",
"@thesouschef/eslint-config-react-native"
]
For more reference, see the documentation.
NOTE: We use prettier for formatting, which is run using eslint-plugin-prettier. As such, prettier is a required dependency. It is recommended that you use the prettier plugin for your editor in addition to the eslint plugin and turn off auto-formatting by any other plugin (including eslint).