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