Skip to content

Add rule to sort TailwindCSS classes within HTML files #436

@pil0u

Description

@pil0u

Hi team,

TailwindCSS is increasingly adopted in the Rails ecosystem. 4 years ago, they officially introduced a class sorter, via a Prettier plugin. This is very useful because it removes the overhead of sorting classes within HTML, which is always a burden when working within a team.

I couldn't find anything related to Tailwind in the rubocop or erb_lint project. I would love to use such class sorter without depending on the JavaScript world.

Would this request be in the realm of rubocop or erb_lint? If I'm in the right place, what would be the approach to build such a rule?

Thanks,
Pilou

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions