-
-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Somewhat edge-casey: the indent rule’s very-snazzy tagChildrenIndent rule does not seem to work on unwrapped/loose text “nodes.”
With this kind of config:
{
"@html-eslint/indent": [
"error",
"tab",
{
"tagChildrenIndent": {
"div": 0,
}
}
]
}And this input:
<div>
Some loose text (maybe… _Markdown_ 🙃).
</div>It’ll ignore that 0 and diligently output one indentation level more:
<div>
Some loose text (maybe… _Markdown_ 🙃).
</div>I’d expect the indent option to be honored regardless of whether the child is an element or not.
(Yes, I might be trying to lint mixed Markdown/HTML, as one does. But I can imagine other stylistic scenarios!)
Thanks again. ✊
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working