https://github.com/despairblue/tslint-plugin-ava
TSLint rules for AVA
https://github.com/despairblue/tslint-plugin-ava
ava lint only test tslint
Last synced: 16 days ago
JSON representation
TSLint rules for AVA
- Host: GitHub
- URL: https://github.com/despairblue/tslint-plugin-ava
- Owner: despairblue
- License: apache-2.0
- Created: 2017-03-22T23:10:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T09:11:44.000Z (about 9 years ago)
- Last Synced: 2025-02-24T02:56:53.879Z (over 1 year ago)
- Topics: ava, lint, only, test, tslint
- Language: TypeScript
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tslint-plugin-ava [](https://travis-ci.org/despairblue/tslint-plugin-ava)
TSLint rules for AVA
[](https://npmjs.com/package/tslint-plugin-ava)
## Install
```
$ yarn add tslint-plugin-ava
```
## Usage
Configure it in `tslint.json`.
```json
{
"extends": [ "tslint-plugin-ava" ],
"rules": {
"no-only": [ true ]
}
}
```
## Rules
The rules will only activate in ~~test~~ **all** files. (PRs welcome).
I only implemented the rule I'm interested in for now. Again PRs or even issues welcome.
- no-only-test - Ensure no `test.only()` are present.
## References
* https://github.com/anmuel/tslint-noif (for the repo layout :heart:)
* https://github.com/palantir/tslint
* https://palantir.github.io/tslint/develop/custom-rules/
* https://palantir.github.io/tslint/develop/testing-rules/