diff --git a/CHANGELOG.md b/CHANGELOG.md index 1773a7d..cbc3a34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add support for `@zackad/prettier-plugin-twig` ([#308](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/308)) - Dropped support for `@zackad/prettier-plugin-twig-melody` ([#308](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/308)) +- Updated Prettier options types ([#325](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/325)) ## [0.6.9] - 2024-11-19 diff --git a/src/index.ts b/src/index.ts index 907700d..c371ec5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1217,6 +1217,16 @@ export interface PluginOptions { * List of custom attributes that contain classes. */ tailwindAttributes?: string[] + + /** + * Preserve whitespace around Tailwind classes when sorting. + */ + tailwindPreserveWhitespace?: boolean + + /** + * Preserve duplicate classes inside a class list when sorting. + */ + tailwindPreserveDuplicates?: boolean } declare module 'prettier' {