Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule to disallow blank lines between tags #3554

Open
sspenst opened this issue Mar 19, 2023 · 2 comments
Open

Rule to disallow blank lines between tags #3554

sspenst opened this issue Mar 19, 2023 · 2 comments

Comments

@sspenst
Copy link

sspenst commented Mar 19, 2023

I'm looking for a rule to disallow blank spaces between tags. For example, this should be disallowed:

<div>
  <span>1</span>

  <span>2</span>
</div>

and this should be allowed:

<div>
  <span>1</span>
  <span>2</span>
</div>

I found vue/padding-line-between-tags which does what I'm looking for, but it would be nice if it existed here as well.

@etherealm13
Copy link

I have raised a PR for adding this rule: #3789.

@ljharb
Copy link
Member

ljharb commented Jul 22, 2024

@etherealm13 i'll take a look, but the "question" label and the lack of a "help wanted" label means it's not yet decided to accept the rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants
@ljharb @etherealm13 @sspenst and others