tslint-no-commented-code-rule

TSLint rule that bans commented code

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
tslint-no-commented-code-rule
200.1.04 years ago4 years agoMinified + gzip package size for tslint-no-commented-code-rule in KB

Readme

tslint-no-commented-code-rule
TSLint rule that bans commented code

Usage

{
  "extends": [
    "tslint-no-commented-code-rule"
  ],
  "rules":
  {
    "no-commented-code": [true, {
      // ignore any comments that have less than N lines
      "minLineCount": 2,
      // ignore all lines that match this regex
      "ignoredCommentRegex": "^(\\w+$|TODO|FIXME)"
    }]
  }
}