---
title: '@corex/prettier'
custom_edit_url: 'https://github.com/iamvishnusankar/corex/edit/master/packages/prettier/README.md'
---

## Installation

```shell
yarn add @corex/prettier -D
```

## Usage

Create `.prettierrc.js` and add the following content

```js
module.exports = require('@corex/prettier')
```

## Override

Override the preset configuration.

```js
module.exports = {
  ...require('@corex/prettier'),
  ...{
    /** custom overrides **/
  },
}
```

## Preset Config

Following is the included preset configuration.

```js
module.exports = {
  printWidth: 100,
  singleQuote: true,
  semi: false,
  trailingComma: 'none',
  useTabs: false,
}
```
