#Astro class:list compatibility with Prettier Tailwind class name reordering

1 messages · Page 1 of 1 (latest)

stoic silo
#

In my prettier.config.js file, I have the following:

module.exports = {
    tailwindAttributes: ["class:list"],
};

This allows for prettier to reorder code such as

class:list="..."

However, if i want to add other classes via properties e.g.

class:list={...}
class:list={[...]}

It does not reorder tailwind class names.

Is there any way around this?

barren pebbleBOT
#
Quiet in here?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.