@jessety/prettier-config
Version:
Prettier config by @jessety
49 lines (33 loc) • 1.25 kB
Markdown
# @jessety/prettier-config
Yet another Prettier [shareable config](https://prettier.io/docs/en/configuration.html#sharing-configurations).
[](https://github.com/jessety/prettier-config/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/@jessety/prettier-config)
[](https://github.com/jessety/prettier-config/blob/main/LICENSE)
## Installation
```shell script
npm i -D prettier @jessety/prettier-config
```
## Usage
Reference this package in the `prettier` section of your `package.json`:
```json
{
"name": "your-package-name",
"version": "1.0.0",
"prettier": "@jessety/prettier-config"
}
```
Alternatively, export a string to that references this package from your `prettier` config file.
For example, a valid `.prettierrc.json` file would be:
```json
"@jessety/prettier-config"
```
## Extending
To extend this config file in your project, use a `.prettierrc.js` file:
```javascript
module.exports = {
...require('@jessety/prettier-config'),
printWidth: 100,
};
```
## License
MIT © Jesse Youngblood