Skip to content

Rule proposal: newline between same level html elements #741

Closed
@kailniris

Description

@kailniris

Please describe what the rule should do:

Enforce newline between same level HTML elements.

What category should the rule belong to?

  • Enforces code style
  • Warns about a potential error
  • Suggests an alternate way of doing something
  • Other (please specify:)

Provide 2-3 code examples that this rule should warn about:

<template>
  <div>content</div>

  <CustomElement />

  <div>
    <div>content</div>

    <CustomElement />
  </div>   
</template>

Additional context

I think this really helps code readability. Maybe for some reasons this can be a bad practice. Ether way there shell be a rule to enforce or prevents this.

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