Replies: 1 comment 1 reply
-
I hope this message finds you well. I am an enthusiastic developer and an avid user of Biome. Recently, I came across the eslint-plugin-typescript-sort-keys plugin, which enforces sorting of interface and string enum keys in TypeScript. This functionality significantly improves code readability and maintainability, and I believe it would be a valuable addition to Biome's feature set. Proposal Interface Key Sorting: Ensuring that all keys in TypeScript interfaces are sorted alphabetically, with options to sort in ascending (asc) or descending (desc) order. Additional configurations could include case sensitivity, natural sorting, and prioritizing required keys. String Enum Sorting: Similar functionality for string enums, ensuring that enum members are sorted alphabetically with customizable options. Benefits Adding new linting rules for sorting TypeScript keys. Thank you for considering this proposal. I look forward to your feedback and hope to assist in enhancing Biome's capabilities. |
Beta Was this translation helpful? Give feedback.
-
We have a few enums that are very large in size. Large enums without sort are a mess to look through.
The one has hundreds of keys.
Would be good if a "sortEnumKeys" existed like "organiseImports", so that developers are forced to ensure the enum doesn't just more scrambled over time?
Beta Was this translation helpful? Give feedback.
All reactions