1.0.2 • Published 6 years ago

tslint-jasmine v1.0.2

Weekly downloads
468
License
ISC
Repository
github
Last release
6 years ago

tslint-jasmine

A set of TSLint rules for jasmine

Installation

npm install tslint-jasmine

Configuration

Add "node_modules/tslint-jasmine" under your "rulesDirectory" configuration in tslint.json:

{
  "rulesDirectory": [
    "node_modules/tslint-jasmine"
  ],
  "rules": {
    "no-jasmine-focus": true,
    "no-jasmine-exclude": true,
    "no-jasmine-pending": true
  }
}

Available rules

RuleWhat does it doSince
no-jasmine-focusThrows lint error if fdescribe or fit is used somewhere1.0
no-jasmine-excludeThrows lint error if xdescribe or xit is used somewhere1.0
no-jasmine-pendingThrows lint error if pending is used somewhere1.0

Using all rules

In case you want to use all the rules, you can simply extend the ruleset, instead of defining all rules:

{
  "extends": [
    "tslint-jasmine/all"
  ],
  "rulesDirectory": [
    "node_modules/tslint-jasmine"
  ]
}

Changelog

1.0

  • Initial release with no-jasmine-focus, no-jasmine-exclude and no-jasmine-pending rules and all ruleset