prettier-plugin-organize-attributes
prettier-plugin-organize-attributes copied to clipboard
Organize your HTML attributes automatically with Prettier 🧼
Would it be possible to add an option to group attributes when they don't have a value? This would be useful for Angular. Example: ` class="some-class" id="anId" formControlName="someControl" appDisableControl required...
The default vue attribute order should match up with the official recommendations by the vue team. https://v3.vuejs.org/style-guide/#element-attribute-order-recommended
Hello there 🙋 I was not able to use the plugin so I checkouted it to ensure it works locally. Had some troubles to install the dependencies, so I removed...
https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues/31 ~~Workaround: https://github.com/tailwindlabs/prettier-plugin-tailwindcss/issues/31#issuecomment-1195411734~~
Hey! When used with prettier-plugin-tailwindcss module, it makes it stop working. The attributes are properly organized, but the class names inside the class attribute don't move. Would be nice to...
For this template ``` ``` it would be handy if the plugin automatically sorts the value of the attribute `class`: ``` ```
Since both Vue and Angular are supported (`.vue` and `.component.html`), it would be great if Svelte files (`.svelte`) could be supported too.
In addition to "vue", "angular" and "html" there is also "lwc" parser, refer to https://prettier.io/docs/en/options.html I got it working by adding one line of code. Without this change the plugin...