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: support svelte shorthand syntax #43

Closed schoero closed 1 month ago

schoero commented 1 month ago

Adds support for svelte attribute shorthand syntax. Fixes #42

Example:

<script> 
  let shorthandAttribute = "shorthand attributes throw an error"; 
</script>
<button
  class="flex bg-red-500"
  {shorthandAttribute}
/>