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

fix: prevent inserting new line if the first class is already too long #24

Closed schoero closed 2 months ago

schoero commented 2 months ago

Before:

<img class={`

  a-very-long-class-that-exceeds-the-maximum-length
`} />

After:

<img class={`
  a-very-long-class-that-exceeds-the-maximum-length
`} />