Skip to content

Commit

Permalink
Readme: Clarify filename of prettierrc (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans authored Oct 23, 2023
1 parent fc214a6 commit 40a58f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ npm i --save-dev prettier prettier-plugin-astro
Then add the plugin to your Prettier configuration:

```js
// .prettierrc.mjs
/** @type {import("prettier").Config} */
export default {
plugins: ['prettier-plugin-astro'],
Expand All @@ -24,6 +25,7 @@ export default {
For optimal compatibility with the different package managers and Prettier plugins, we recommend manually specifying the parser to use for Astro files in your Prettier config as shown in the example below:

```js
// .prettierrc.mjs
/** @type {import("prettier").Config} */
export default {
plugins: ['prettier-plugin-astro'],
Expand Down

0 comments on commit 40a58f1

Please sign in to comment.