Ensure repeatWhen or retryWhen notifiers are used (no-ignored-notifier)
October 22, 2020 ยท View on GitHub
This rule effects failures if the notifier passed to a repeatWhen or retryWhen callback is not used.
Rule details
Examples of incorrect code for this rule:
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:
import { repeatWhen, take } from "rxjs/operators";
const repeating = source.pipe(
repeatWhen(notifications => notifications.pipe(take(3)))
);
Options
This rule has no options.