eslint-plugin-rxjs
Version:
ESLint rules for RxJS
30 lines (20 loc) • 659 B
Markdown
if the notifier passed to a `repeatWhen` or `retryWhen` callback is not used.
Examples of **incorrect** code for this rule:
```ts
import { range } from "rxjs";
import { repeatWhen, take } from "rxjs/operators";
const repeating = source.pipe(
repeatWhen(notifications => range(0, 3))
);
```
Examples of **correct** code for this rule:
```ts
import { repeatWhen, take } from "rxjs/operators";
const repeating = source.pipe(
repeatWhen(notifications => notifications.pipe(take(3)))
);
```
This rule has no options.
This rule effects failures