Rule void documentation discrepancy
Documentation for rule void
lists the style "selfclosing"
while the implementation uses "selfclose"
.
Additionally the rule defaults to "any"
for invalid inputs thus allowing any style making it hard to detect the error.
Reduced test-case
Given this configuration:
"rules": {
"void": [ "warn", { "style": "selfclosing" } ]
}
and a markup as:
<hr>
Expected result
An error about <hr>
not being self-closed.
Actual result
No error.