Closed
Description
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)
...
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']
}]
},
]