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

Add example for Prettier ESM config #263

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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