UNPKG

eslint-plugin-rxjs

Version:
28 lines (18 loc) 536 B
# 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: ```ts 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: ```ts import { of } from "rxjs"; of(42, 54).subscribe((value) => console.log(value)); ``` ## Options This rule has no options.