UNPKG

eslint-plugin-rxjs

Version:
23 lines (15 loc) 504 B
# Avoid unnecessary explicit type arguments (`no-explicit-generics`) This rule prevents the use of explicit type arguments when the type arguments can be inferred. ## Rule details Examples of **incorrect** code for this rule: ```ts import { BehaviorSubject } from "rxjs"; const subject = new BehaviorSubject<number>(42); ``` Examples of **correct** code for this rule: ```ts import { BehaviorSubject } from "rxjs"; const subject = new BehaviorSubject(42); ``` ## Options This rule has no options.