Skip to content

[FEATURE] Add skip / inline options to attrs-newline #403

@mfehrenbach

Description

@mfehrenbach

Hi there. I think it’d be useful for the attrs-newline rule to have the same skip and inline options as element-newline, for all the same reasons.

Namely if you have something like this:

<p>Lorem ipsum dolor sit amet, <span class="foo" data-foo="true">consectetur</span> adipiscing elit.</p>

…and low ifAttrsMoreThan settings, you can end up with this sort of wild thing:

<p>Lorem ipsum dolor sit amet, <span 
	class="foo"
	data-foo="true"
>consectetur</span> adipiscing elit.</p>

(Appreciate all your work on this—has been very useful so far!)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions