Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 536 Bytes

no-ignored-subscribe.md

File metadata and controls

28 lines (18 loc) · 536 Bytes

Enforce the passing of handlers to subscribe (no-ignored-subscribe)

This rule effects failures whenever subscribe is called without handlers.

Rule details

Examples of incorrect code for this rule:

import { of } from "rxjs";
import { tap } from "rxjs/operators";

of(42, 54).pipe(
  tap((value) => console.log(value))
).subscribe();

Examples of correct code for this rule:

import { of } from "rxjs";

of(42, 54).subscribe((value) => console.log(value));

Options

This rule has no options.