From b4aa82153f8da6c27fc3893846d595e4ef7e2b93 Mon Sep 17 00:00:00 2001 From: Dan Wood Date: Wed, 10 Apr 2024 20:23:23 +1000 Subject: [PATCH] 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 --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5744649..3f9c298 100644 --- a/README.md +++ b/README.md @@ -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"] } ```