Skip to content

Commit a9201df

Browse files
Add missing properties to PluginOptions type (#325)
* Add missing properties to PluginOptions type * Update changelog --------- Co-authored-by: Jordan Pittman <[email protected]>
1 parent 04184b8 commit a9201df

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Add support for `@zackad/prettier-plugin-twig` ([#308](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/308))
1111
- Dropped support for `@zackad/prettier-plugin-twig-melody` ([#308](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/308))
12+
- Updated Prettier options types ([#325](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/325))
1213

1314
## [0.6.9] - 2024-11-19
1415

src/index.ts

+10
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,16 @@ export interface PluginOptions {
12171217
* List of custom attributes that contain classes.
12181218
*/
12191219
tailwindAttributes?: string[]
1220+
1221+
/**
1222+
* Preserve whitespace around Tailwind classes when sorting.
1223+
*/
1224+
tailwindPreserveWhitespace?: boolean
1225+
1226+
/**
1227+
* Preserve duplicate classes inside a class list when sorting.
1228+
*/
1229+
tailwindPreserveDuplicates?: boolean
12201230
}
12211231

12221232
declare module 'prettier' {

0 commit comments

Comments
 (0)