0
votes

I want to enable comments without space in tslint if comment starts with 4 slashes.

Rule: https://palantir.github.io/tslint/rules/comment-format/

I've tried

"comment-format": [true, "check-space", { "ignore-pattern": "//" }],

but it didn't helped.

2

2 Answers

1
votes

From the documentation:

Exceptions to "check-lowercase" or "check-uppercase" can be managed with object that may be passed as last argument.

It seems one cannot attach ignored patterns to "check-space".

0
votes

add next rule to tslint.json:

"comment-format": [false, "check-space"]