Quantcast
Viewing all articles
Browse latest Browse all 5

Answer by wozniaklukasz for How can I disable the error (prettier/prettier) on eslint?

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.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>