Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 659 Bytes

no-ignored-notifier.md

File metadata and controls

30 lines (20 loc) · 659 Bytes

Ensure repeatWhen or retryWhen notifiers are used (no-ignored-notifier)

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.