schoero / eslint-plugin-readable-tailwind

ESLint plugin to automatically break up long tailwind class strings into multiple lines for better readability.
MIT License
63 stars 3 forks source link

feat: vue bound classes #31

Closed schoero closed 1 month ago

schoero commented 1 month ago

Add support for bound classes in vue.

<template>
  <!-- dirty -->
  <img v-bind:class="{ 'c b a':  someCondition}" />
  <!-- clean -->
  <img v-bind:class="{ 'a b c':  someCondition}" />
</template>
<template>
  <!-- dirty -->
  <img :class="{ 'c b a':  someCondition}" />
  <!-- clean -->
  <img :class="{ 'a b c':  someCondition}" />
</template>

closes #30