html-eslint icon indicating copy to clipboard operation
html-eslint copied to clipboard

Not detecting hanging closing tags

Open tobias-edwards opened this issue 1 year ago • 1 comments

The plugin doesn't seem to be picking up on hanging closing tags e.g.

</p>

When included in a large HTML file, the HTML is then invalid and formatters like Prettier are unable to execute.

Package versions:

{
    "@html-eslint/eslint-plugin": "^0.22.0",
    "@html-eslint/parser": "^0.22.0",
    "eslint": "^8.56.0",
}

I tried using @html-eslint/require-closing-tags but it also does not pick up on hanging closing tags.

tobias-edwards avatar Dec 27 '23 10:12 tobias-edwards

Hi @tobias-edwards Thank you for the report. Are you suggesting adding a lint rule that checks for hanging closing tags?

yeonjuan avatar Dec 30 '23 14:12 yeonjuan