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 @foo
Without a comment Valid @foo #comment
With a comment separated with space Valid @foo#comment
With 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 @foo
Without a comment Valid @foo #comment
With a comment separated with space Invalid @foo#comment
With a comment non-separated Invalid
{
"no-partially-commented-tag-lines": [
"error",
{
"allowSeparated": false
}
]
}