Skip to main content

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

NameTypeDescriptionDefault
allowSeparatedbooleanConfigure if a comment is allowed if is separated with a spacetrue

Examples

Allow separated (Default)

The following table illustrates how it works:

ExampleDescriptionResult
@fooWithout a commentValid
@foo #commentWith a comment separated with spaceValid
@foo#commentWith a comment non-separatedInvalid
{
"no-partially-commented-tag-lines": [
"error",
{
"allowSeparated": true
}
]
}

Not allow separated

The following table illustrates how it works:

ExampleDescriptionResult
@fooWithout a commentValid
@foo #commentWith a comment separated with spaceInvalid
@foo#commentWith a comment non-separatedInvalid
{
"no-partially-commented-tag-lines": [
"error",
{
"allowSeparated": false
}
]
}