no-partially-commented-tag-lines
Disallows partially commented tag lines. You can configure if a comment is allowed if is separated with a space or not allowed at all.
Configuration
| Name | Type | Description | Default |
|---|---|---|---|
allowSeparated | boolean | Configure if a comment is allowed if is separated with a space | true |
Examples
Allow separated (Default)
The following table illustrates how it works:
Example Description Result @fooWithout a comment Valid @foo #commentWith a comment separated with space Valid @foo#commentWith a comment non-separated Invalid
{
"no-partially-commented-tag-lines": [
"error",
{
"allowSeparated": true
}
]
}
Not allow separated
The following table illustrates how it works:
Example Description Result @fooWithout a comment Valid @foo #commentWith a comment separated with space Invalid @foo#commentWith a comment non-separated Invalid
{
"no-partially-commented-tag-lines": [
"error",
{
"allowSeparated": false
}
]
}