From dbaa1fd5fd7c18f8ab6becf5da47ad69c35864d9 Mon Sep 17 00:00:00 2001 From: heguro <65112898+heguro@users.noreply.github.com> Date: Sun, 27 Oct 2024 23:48:31 +0900 Subject: [PATCH 1/2] Add missing properties to PluginOptions type --- src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/index.ts b/src/index.ts index 25f76bce..261ae236 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1210,6 +1210,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' { From 7dd694063a7f891d33a8921afe83244a6db885e5 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Mon, 6 Jan 2025 09:54:43 -0500 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1773a7d3..cbc3a346 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