NgRx TSLint
TSLint rules for NgRx. Heavily based on ReactiveX/rxjs-tslint
Table of Contents
Rules
ngrx-effects-operators
Migrates the ofType
function to its pipeable equivalent.
BEFORE:; search = this.actions.ofTypeSEARCH_ANIMALS.pipe debounceTime3000, switchMap..., ; AFTER:; search = this.actions.pipe ofTypeSEARCH_ANIMALS, debounceTime3000, switchMap..., ;
ngrx-chained-pipes
Because the rules above will create a new pipe
chain you may end up with multiple pipes, this rule will combine both pipe chains.
BEFORE:this.store.pipeselect....pipemap... AFTER:this.store.pipeselect..., map...
Usage
License
MIT