Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Personal prettier config
https://github.com/decampsrenan/prettier-config

Last synced: about 14 hours ago
JSON representation

Personal prettier config

Awesome Lists containing this project

README

        

## Personal prettier-config

I use this config in all my projects. No need to copy/paste anymore 😄

### Install

```sh
pnpm i -D @decampsrenan/prettier-config
```

```sh
npm i -D @decampsrenan/prettier-config
```

```sh
yarn add -D @decampsrenan/prettier-config
```

### Usage

```json
// package.json
{
"name": "...",
"prettier": "@decampsrenan/prettier-config"
}
```

Or if you need more control on the settings:

```js
// .prettierrc.mjs
import config from "@decampsrenan/prettier-config"

export default {
...config
// Override with your custom needs here
}
```

Then run the following commands to check or update files if needed:

```sh
npx prettier -c ./ # Check if there is some files to update
npx prettier -w ./ # Update files
```