forked from cartant/eslint-plugin-rxjs
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
version: 0.6.0
Gday,
First - great job. Thank you.
Not sure if worth removing no-explicit-generics
from strict rule set.
The rule is generating an error for lines of code like this...
private readonly itemSelectionUpdateSubject$ = new BehaviorSubject<ItemSelectionModel | undefined>(undefined);
If i follow the rule and remove the generic then when the subject is set it will error as the subject has type 'undefined'.
Maybe an option to ignore undefined could work here or probably would be better if the rule ignored generics with union types (or had an option to enable that behavior).
JasonWeinzierl, Dmytro27Ind, Eugeno and ChrisMBarr
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working