Skip to content

Commit

Permalink
Add example for Prettier ESM config (#263)
Browse files Browse the repository at this point in the history
* Add example for Prettier ESM config

Thought this might be useful for folks since we are in a shift towards an ESM config future.

* Update README.md

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
  • Loading branch information
valtism and adamwathan committed Apr 10, 2024
1 parent 3201e5f commit b4aa821
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Expand Up @@ -10,12 +10,11 @@ To get started, install `prettier-plugin-tailwindcss` as a dev-dependency:
npm install -D prettier prettier-plugin-tailwindcss
```

Then add the plugin to your [Prettier config](https://prettier.io/docs/en/configuration.html):
Then add the plugin to your [Prettier configuration](https://prettier.io/docs/en/configuration.html):

```js
// prettier.config.js
module.exports = {
plugins: ['prettier-plugin-tailwindcss'],
```json
{
"plugins": ["prettier-plugin-tailwindcss"]
}
```

Expand Down

0 comments on commit b4aa821

Please sign in to comment.