tslint-no-commented-code-rule

0.1.0 • Public • Published

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)"
    }]
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1,031
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1,031

Package Sidebar

Install

npm i tslint-no-commented-code-rule

Weekly Downloads

43

Version

0.1.0

License

MIT

Unpacked Size

13 kB

Total Files

7

Last publish

Collaborators

  • alexkuz