void ext - bhsd-harry/wikiparser-node GitHub Wiki
❌ By default, this rule reports void extension tags (e.g., <templatestyles>
and <section>
) containing content as errors.
Examples of incorrect code for { "void-ext": 2 }
:
<languages>Foo</languages>
Examples of correct code for { "void-ext": 2 }
:
<languages></languages>
This rule can be configured for specific extension tags by providing an object with the tag name as the key and the severity as the value.
Examples of incorrect code for { "void-ext": [ 0, { "templatestyles": 2 } ] }
:
<templatestyles>Foo</templatestyles>
Examples of correct code for { "void-ext": [ 2, { "templatestyles": 0 } ] }
:
<templatestyles>Foo</templatestyles>