Skip to content

empty multiline-html-element-content-newline & singleline-html-element-content-newline #682

@armano2

Description

@armano2

Tell us about your environment

  • ESLint version: 5.9.0
  • eslint-plugin-vue version: 5.0.0-beta.5
  • Node version: 8.12.0

Please show your full configuration:

{
  "extends": {
    "plugin:vue/strongly-recommended"
  }
}

What did you do?

multiline-html-element-content-newline

<div
  class="a"
  v-if="b"
  @click.stop.prevent
></div>

singleline-html-element-content-newline

<slot name="header"></slot>

What did you expect to happen?

When component has no content this rule should not enforce putting new line.

What actually happened?

 Expected 1 line break after opening tag (`<div>`), but no line breaks found
 Expected 1 line break after opening tag (`<div>`), but no line breaks found

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy