prettier-plugin-organize-attributes
prettier-plugin-organize-attributes copied to clipboard
Organize your HTML attributes automatically with Prettier 🧼
Hi, My teammates and me have noticed you guys are using `localeCompare` to sort attributes: https://github.com/NiklasPor/prettier-plugin-organize-attributes/blob/50a0c4f8809c34b351a400011b7734701285b5e9/src/organize.ts#L108 It took me a while to figure out why prettier sorts the HTML attributes...
Sometimes it's needed to keep an attribute in place, for example in Vue 3, [where `v-bind` position matters](https://v3-migration.vuejs.org/breaking-changes/v-bind.html#_3-x-syntax). This PR adds a means to prevent certain attributes from being moved...
Hi there! I'm currently working with Laravel and observed that the attributes aren't sorted when using Laravel blade components. For instance... ```HTML ```` Could we organize these attributes? Also, it...
Introduces a new option to sort some starting or ending characters, e.g. for angular [ ] ( ) and so on.
Hi, we can write angular inputs now as simple attributes, e.g. ``` ``` instead of ``` ``` But because of the sorting attributes that belong together (just by name) are...