An open API service indexing awesome lists of open source software.

https://github.com/repeale/prettier-config


https://github.com/repeale/prettier-config

prettier

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Prettier Config

![npm](https://img.shields.io/npm/dt/@repeale/prettier-config?style=flat-square)

- [Prettier Config](#prettier-config)
- [Getting started](#getting-started)
- [Config](#config)
- [License](#license)

## Getting started

Install the package and related peerDependencies as `devDependencies`:

```sh
npm install --save-dev @repeale/prettier-config prettier
```

or

```sh
yarn add --dev @repeale/prettier-config prettier
```

Reference `@repeale/prettier-config` in your package.json:

```json
{
"name": "my-project",
"version": "1.0.0",
"prettier": "@repeale/prettier-config"
}
```

or export the config from a `.prettierrc.js` file:

```json
module.exports = {
...require('@repeale/prettier-config'),
}
```

this will allow you to easilly overwrite options.

Or, you can use it in other ways as described in the
[official documentation](https://prettier.io/docs/en/configuration.html#sharing-configurations).

## Config

Check the [`.prettierrc.json`](./.prettierrc.json) file if you want to inspect the configuration.

## License

[MIT License](./LICENSE)