https://github.com/litee/tslint-mocha
TSLint rules for enforcing best practices with Mocha test library
https://github.com/litee/tslint-mocha
Last synced: 4 months ago
JSON representation
TSLint rules for enforcing best practices with Mocha test library
- Host: GitHub
- URL: https://github.com/litee/tslint-mocha
- Owner: Litee
- License: mit
- Created: 2019-01-27T20:22:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T03:57:04.000Z (over 4 years ago)
- Last Synced: 2025-05-14T15:18:38.306Z (about 1 year ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tslint-mocha
UPDATE: Project is abandoned because TSLint is being replaced by ESLint + plugins.
This package provides a TSLint rule that help to enforce some best practices when using Mocha test runner.
## Supported rules
* `mocha-no-only` - to avoid using `it.only()` or similar methods.
## How to install
* Run `npm install --save-dev tslint-mocha`
* Add to your `tslint.json` file:
```json
"rules": {
"mocha-no-only": true
},
"rulesDirectory": [
"tslint-mocha"
]
```
## Status
[](https://travis-ci.org/Litee/tslint-mocha)