Skip to content

allowed-tags ​

Allow only listed tags and tags matching listed regular expressions.

CategoryRecommendedSafe autofixDefault options
tagsnono{"tags":[],"patterns":[]}

Reports tags that are not listed in tags and match no regular expression in patterns.

Configuration ​

json
{ "rules": { "allowed-tags": ["error", {"tags":[],"patterns":[]}] } }

Triggered by ​

text
@unlisted

Released under the MIT License.