@betalectic-reusejs/shared-config-prettier-react-native

v1.1.1

Published

Betalectic's Prettier configuration for React Native

Downloads

8

Readme

NPM version NPM downloads NPM Publish

Steps to setup React-Native Prettier-Configuration

  1. Add following packages as dev-dependencies
yarn add @betalectic-reusejs/shared-config-prettier-react-native prettier -D
'or'
yarn add --dev @betalectic-reusejs/shared-config-prettier-react-native prettier
  1. Add following line to the package.json of your app.
{
  //Some Code
  "prettier": "@betalectic-reusejs/shared-config-prettier-react-native"
  //Some code
}

That should configure prettier for your project. The package only provides you with configuration for prettier and above steps show the easiest and simplest method to use this configuration. If you want to use some other methods to configure prettier or over ride the configuration pls refer to following link to configure your own prettier settings. https://prettier.io/docs/en/configuration.html