Skip to content

multiline-html-element-content-newline case sensitivity #662

Closed
@armano2

Description

@armano2

Tell us about your environment

  • ESLint version: 5.9.0
  • eslint-plugin-vue version: 5.0.0.beta4 0fd0f7b
  • Node version: 10

Please show your full configuration:

{
  "vue/multiline-html-element-content-newline": ["error", {
    "ignores": ["VueComponent", "pre", "textarea"]
  }]
}

What did you do?

<VueComponent>multiline
content</VueComponent>

<VueComponent><span
  class="bold">For example,</span>
Defines the Vue component that accepts preformatted text.</VueComponent>

What did you expect to happen?
There should be no errors

What actually happened?

[ESLint] Expected 1 line break after opening tag (`<vuecomponent>`), but no line breaks found. (vue/multiline-html-element-content-newline)
...

https://armano2.github.io/eslint-plugin-vue/rules/multiline-html-element-content-newline.html#ignores-vuecomponent-pre-textarea

Test case

[
    {
      code: `
        <template>
          <IgnoreTag>content</IgnoreTag>
          <IgnoreTag
            id="test-pre"
          >content</IgnoreTag>
          <IgnoreTag><div
            >content</div></IgnoreTag>
          <IgnoreTag>>content
            content</IgnoreTag>
        </template>`,
      options: [{
        ignores: ['IgnoreTag']
      }]
    },
]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions