allowed-tags
Only the listed tags are allowed.
Configuration
Name | Type | Description | Default |
---|---|---|---|
tags | string[] | List of tags that should match by exact text. | [] |
patterns | string[] | List of patterns that should match by a Regular Expression. | [] |
Examples
Example
Only accept tags
@watch
,@wip
and all that starts with@ID.
and is followed by 5 numbers.
{
"allowed-tags": [
"error",
{
"tags": [
"@watch",
"@wip"
],
"patterns": [
"^@ID.[0-9]{5}$"
]
}
]
}