shufo / prettier-plugin-blade

Format your blade template using Prettier
https://www.npmjs.com/package/@shufo/prettier-plugin-blade
MIT License
317 stars 8 forks source link

[Feature Request]: wrapAttributesPrintWidth #249

Closed AnourValar closed 2 months ago

AnourValar commented 8 months ago

Description

wrapAttributesMinAttrs is a nice option. But attribute length could be different. Often tag with a 3 attributes could be wider than another tag with a 4 attributes.

Suggested Solution

A new option with maximum length per tag (I called it wrapAttributesPrintWidth) will resolve it. The key thing - this new option should respect wrapAttributes. In the other hand, printWidth ignores it.

Alternatives

No response

Additional Context

No response

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days