Skip to content

Commit 442daee

Browse files
docs(no-ignored-takewhile-value): when not to use it
1 parent dc1adba commit 442daee

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/rules/no-ignored-takewhile-value.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ import { takeWhile } from "rxjs/operators";
2424

2525
const whilst = source.pipe(takeWhile(value => value));
2626
```
27+
28+
## When Not To Use It
29+
30+
If you don't care about using the given value in a `takeWhile` callback, then you don't need this rule.
31+
32+
## Resources
33+
34+
- [Rule source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/src/rules/no-ignored-takewhile-value.ts)
35+
- [Test source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/tests/rules/no-ignored-takewhile-value.test.ts)

0 commit comments

Comments
 (0)