unclosed comment - bhsd-harry/wikiparser-node GitHub Wiki

unclosed-comment

⚠️ By default, this rule reports unclosed HTML comments as warnings.

Examples

Examples of incorrect code for { "unclosed-comment": 2 }:

<!-- Foo

Options

include

By default, this rule also checks for unclosed <includeonly> tags. You can configure this behavior by providing an include option.

Examples of incorrect code for { "unclosed-comment": [ 0, { "include": 2 } ] }:

<includeonly>Foo

Examples of correct code for { "unclosed-comment": [ 2, { "include": 0 } ] }:

<includeonly>Foo