diff --git a/packages/prettier-config/CHANGELOG.md b/packages/prettier-config/CHANGELOG.md index 9365b82ad8108..da8e9b4ec49d4 100644 --- a/packages/prettier-config/CHANGELOG.md +++ b/packages/prettier-config/CHANGELOG.md @@ -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) diff --git a/packages/prettier-config/README.md b/packages/prettier-config/README.md index 3a06384383574..b07fad62e14e6 100644 --- a/packages/prettier-config/README.md +++ b/packages/prettier-config/README.md @@ -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