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

https://github.com/m-sureshraj/prettier-config

⚙️ Shared Prettier config for my projects
https://github.com/m-sureshraj/prettier-config

prettier-config shared

Last synced: about 1 month ago
JSON representation

⚙️ Shared Prettier config for my projects

Awesome Lists containing this project

README

          

# prettier-config
Shared [Prettier](https://prettier.io/) config for my projects.

## Install
```
npm install -D @sureshraj/prettier-config
```

## Usage
A `prettier` key in your `package.json` file.

```json
{
"prettier": "@sureshraj/prettier-config"
}
```

#### OR

Use the `prettier.config.js` file if you need to extend
the configuration to overwrite some properties from
the shared configuration. Refer to the [official guide](https://prettier.io/docs/en/configuration.html#sharing-configurations)
for more information.

```javascript
// prettier.config.js
const sharedConfig = require('@sureshraj/prettier-config');

module.exports = {
...sharedConfig,
semi: false,
};
```