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

v1.1.1

Published

Betalectic's Prettier configuration for react

Downloads

2

Readme

NPM version NPM downloads NPM Publish

Steps to setup React Prettier-Configuration

  1. Add following packages as dev-dependencies
yarn add @betalectic-reusejs/shared-config-prettier-react prettier -D
'or'
yarn add --dev @betalectic-reusejs/shared-config-prettier-react prettier
  1. Add following line to the package.json of your app.
{
  //Some Code
  "prettier": "@betalectic-reusejs/shared-config-prettier-react"
  //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