eslint-plugin-rxjs
Version:
ESLint rules for RxJS
23 lines (15 loc) • 449 B
Markdown
# Use returned observables (`no-ignored-observable`)
The effects failures if an observable returned by a function is neither assigned to a variable or property or passed to a function.
## Rule details
Examples of **incorrect** code for this rule:
```ts
import { of } from "rxjs";
of(42, 54);
```
Examples of **correct** code for this rule:
```ts
import { of } from "rxjs";
const answers = of(42, 54);
```
## Options
This rule has no options.