forked from cartant/eslint-plugin-rxjs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(no-ignored-replay-buffer): check config bufferSize (#12)
Fixes cartant#100 There's also a proposed fix PR in the upstream repo cartant#114 but I avoided looking at that solution to avoid any license issue, so this solution might be different. - Fix: if the `shareReplay` operator was passed an object config, then require `bufferSize` to be in that object. - Fix: the rule wasn't handling if `shareReplay` is imported under a namespace. - (Might need to review the entire project. Since rxjs now recommends importing from "rxjs" instead of "rxjs/operators", there's a risk that many rules also fail to account for that new paradigm. Note that this rule is the only rule that tests namespace imports for all cases, so we at least should expand that coverage/type of test.)
- Loading branch information
1 parent
6870c8a
commit ef2f886
Showing
3 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters