Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Apr 10, 2024
1 parent aebfb9a commit 9ab4bff
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +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'],
}
```

Or in an ESM prettier config (with `"type": "module"` in `package.json`, like Vite)
```js
// prettier.config.js
export default {
plugins: ['prettier-plugin-tailwindcss'],
```json
{
"plugins": ["prettier-plugin-tailwindcss"]
}
```

Expand Down

0 comments on commit 9ab4bff

Please sign in to comment.