[Prettier Plugin] Possible to sort classes in Shopify Liquid parameters? #19932
Replies: 1 comment
|
There is no current The plugin's configurable targets are:
Your string is neither in the Liquid AST: it is a string value attached to the The supported options are documented here: Make sure the two plugins are at least configured in the supported order: {
"plugins": [
"@shopify/prettier-plugin-liquid",
"prettier-plugin-tailwindcss"
]
}
For now the choices are to keep that argument manually ordered: | image_tag: class: 'size-full object-cover mt-5 md:mt-0'or propose support in |
Uh oh!
There was an error while loading. Please reload this page.
Hey guys, I have a question about sorting classes using
prettier-plugin-tailwindcss. Take this example code which renders an image tag using Liquid and applies some classes:{{ section.settings.primary_image | image_url: width: section.settings.primary_image.width | image_tag: class: 'object-cover size-full md:mt-0 mt-5' }}Is there a
.prettierrcsetting that can get the plugin to sort the classes passed in as a parameter?All reactions