Skip to content

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

Closed
@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