A set of additional rules for TSLint.
npm install --save-dev tslint-checks
Add node_modules/tslint-checks
under rulesDirectory
entry in tslint.json
:
"rulesDirectory": [
"node_modules/tslint-checks"
],
"rules": {
...
}
The following rules are available:
Rule name | Description |
---|---|
no-focused-tests |
Do not commit code with focused tests. This is useful during development, but it might hide failing tests that do not get executed. Configuration: runner: Select one of the available options, ava, jasmine, jest, or mocha. suffix: Suffix for the test files; if not specified, all files will be analyzed. Example: "no-focused-tests": [ true, { "runner": "ava", "suffix": ".spec.ts" } ] |
MIT