tailwindlabs / prettier-plugin-tailwindcss

A Prettier plugin for Tailwind CSS that automatically sorts classes based on our recommended class order.
MIT License
5.66k stars 135 forks source link

Export plugin options type #292

Closed thecrypticace closed 5 months ago

thecrypticace commented 5 months ago

0.6.3 removed the export for the PluginOptions type. This wasn't really intentional so we're adding it back as some projects were importing it.

However, no project ever needs to use this type directly.

We extend the appropriate interfaces in Prettier so you only ever have to type your config file export as import("prettier").Config or your options object as import("prettier").Options if you're using the programmatic API.

Fixes #291