Skip to content

Commit b4aa821

Browse files
valtismadamwathan
andauthored
Add example for Prettier ESM config (#263)
* 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 <[email protected]>
1 parent 3201e5f commit b4aa821

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ To get started, install `prettier-plugin-tailwindcss` as a dev-dependency:
1010
npm install -D prettier prettier-plugin-tailwindcss
1111
```
1212

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

15-
```js
16-
// prettier.config.js
17-
module.exports = {
18-
plugins: ['prettier-plugin-tailwindcss'],
15+
```json
16+
{
17+
"plugins": ["prettier-plugin-tailwindcss"]
1918
}
2019
```
2120

0 commit comments

Comments
 (0)