To get rid of conflicting rules when using both - prettier and eslint there is a eslint-config-prettier
package.
Run npm install --save-dev eslint-config-prettier
to install and then in eslintrc.js
(or wherever you have the eslint rules defined) add:
{"extends": [ ...,"@react-native-community","prettier" ]}
Now eslint should respect prettier rules. Here is a link to GH repo.