Skip to content

Commit

Permalink
package(prettier-config): update docs (#44620)
Browse files Browse the repository at this point in the history
* Fix doc for extending prettier-config in .prettierrc file

* Add step for adding prettier-config in .prettierrc.js file

* Add changelog
  • Loading branch information
thelovekesh authored Oct 5, 2022
1 parent 37c1e55 commit 509cb24
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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

0 comments on commit 509cb24

Please sign in to comment.