Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package(prettier-config): update docs #44620

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/prettier-config/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Internal

- Fix doc for extending the prettier config in `.prettierrc` config file.
- Add step to extend the prettier config in `.prettierrc.js` config file.

## 2.1.0 (2022-09-21)

## 2.0.0 (2022-08-24)
Expand Down
8 changes: 7 additions & 1 deletion packages/prettier-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ Add this to your `package.json` file:
Alternatively, add this to `.prettierrc` file:

```
extends: ['@wordpress/prettier-config']
"@wordpress/prettier-config"
```

Or add this to `.prettierrc.js` file:

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

## Contributing to this package
Expand Down