open-index/open-npm huggingface dataset:
npm package: @lmc-eu/prettier-config
Description: LMC's ESlint configuration for Prettier
Author: Tomáš Litera
Latest version: 2.0.1

# Prettier Config Documentation

> Documentation for the `@lmc-eu/prettier-config` module.

## Usage

```sh
# Yarn:
yarn add --dev @lmc-eu/prettier-config

# npm:
npm install --save-dev @lmc-eu/prettier-config
```

And reference it in your _.prettierrc.js_ file:

```js
module.exports = require('@lmc-eu/prettier-config');
```

Or you can choose your preffered way of using configs:

<details>
<summary><i>package.json</i></summary>

```json
{
  // ...
  "prettier": "@lmc-eu/prettier-config"
}
```

</details>
<details>
<summary><i>.prettierrc</i> or <i>.prettierrc.json</i></summary>

```json
"@lmc-eu/prettier-config"
```

</details>

_Note: If you are using `prettier` < v1.17 check [this note](#Prettier-version)._

## Extending

To extend the current options you will need to create a _.prettierrc.js_ and add the following:

```js
module.exports = {
  ...require('@lmc-eu/prettier-config'),

  // Add custom options bellow:
  useTabs: true,
};
```

## Notes

### Prettier Version

Versions of `prettier` before v1.17 did not feature the possibility of using a shared config via _package.json_. The way to do it is similar to when [extending](#Extending), except that you can just export the config directly:

```js
// .prettierrc.js

module.exports = require('@lmc-eu/prettier-config');
```

## More

- [Prettier Documentation](https://prettier.io/docs/en/index.html)