Skip to content

Rule to disallow blank lines between tags #3554

Open
@sspenst

Description

@sspenst

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.

Activity

etherealm13

etherealm13 commented on Jul 22, 2024

@etherealm13

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

ljharb

ljharb commented on Jul 22, 2024

@ljharb
Member

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Rule to disallow blank lines between tags · Issue #3554 · jsx-eslint/eslint-plugin-react