You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
</script>
<!-- ✓ GOOD --><!-- 41 characters -->
<MyComponentattr1="test"attr2="test" />
<!-- 99 characters -->
<MyComponentattr1="test"attr2="test"attr3="some very long text that takes spaces and many..."
/>
<!-- ✗ BAD --><!-- 41 characters -->
<MyComponentattr1="test"attr2="test"
/>
<!-- 99 characters -->
<MyComponentattr1="test"attr2="test"attr3="some very long text that takes spaces and many..."/>
Additional comments
These are only examples, I am not very much opiniated on the rule name or customization as long as it can give the proper result in the end.
Right now Prettier is able to enforce this style correctly, however Prettier is very opiniated and doesn't offer much customization and i would like to get rid of it.
The text was updated successfully, but these errors were encountered:
Thank you for the rule suggestion.
I'm interested in that rule, but I think it conflicts with svelte/max-attributes-per-line.
Could you please consider changing the rule so that it doesn't conflict, or consider deprecating svelte/max-attributes-per-line and creating a new rule that includes the use case of svelte/max-attributes-per-line?
Thank you for the rule suggestion. I'm interested in that rule, but I think it conflicts with svelte/max-attributes-per-line. Could you please consider changing the rule so that it doesn't conflict, or consider deprecating svelte/max-attributes-per-line and creating a new rule that includes the use case of svelte/max-attributes-per-line?
Motivation
There are currently 2 existing rules that helps formatting attributes line break:
The problem with them is that there is no way to consider the line length to enforce proper style.
Description
"svelte/attributes-line-break": ["error", { printWidth: 90 }]
Examples
Additional comments
These are only examples, I am not very much opiniated on the rule name or customization as long as it can give the proper result in the end.
Right now Prettier is able to enforce this style correctly, however Prettier is very opiniated and doesn't offer much customization and i would like to get rid of it.
The text was updated successfully, but these errors were encountered: