File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ The package includes the following rules.
104104| [ no-nested-subscribe] ( docs/rules/no-nested-subscribe.md ) | Disallow calling ` subscribe ` within a ` subscribe ` callback. | ✅ 🔒 | | | 💭 | |
105105| [ no-redundant-notify] ( docs/rules/no-redundant-notify.md ) | Disallow sending redundant notifications from completed or errored observables. | ✅ 🔒 | | | 💭 | |
106106| [ no-sharereplay] ( docs/rules/no-sharereplay.md ) | Disallow unsafe ` shareReplay ` usage. | ✅ 🔒 | | | | |
107- | [ no-sharereplay-before-takeuntil] ( docs/rules/no-sharereplay-before-takeuntil.md ) | Disallow using ` shareReplay({ refCount: false }) ` before ` takeUntil ` . | | | | | |
107+ | [ no-sharereplay-before-takeuntil] ( docs/rules/no-sharereplay-before-takeuntil.md ) | Disallow using ` shareReplay({ refCount: false }) ` before ` takeUntil ` . | 🔒 | | | | |
108108| [ no-subclass] ( docs/rules/no-subclass.md ) | Disallow subclassing RxJS classes. | 🔒 | | | 💭 | |
109109| [ no-subject-unsubscribe] ( docs/rules/no-subject-unsubscribe.md ) | Disallow calling the ` unsubscribe ` method of subjects. | ✅ 🔒 | | | 💭 | |
110110| [ no-subject-value] ( docs/rules/no-subject-value.md ) | Disallow accessing the ` value ` property of a ` BehaviorSubject ` instance. | | | | 💭 | |
Original file line number Diff line number Diff line change 11# Disallow using ` shareReplay({ refCount: false }) ` before ` takeUntil ` (` rxjs-x/no-sharereplay-before-takeuntil ` )
22
3+ 💼 This rule is enabled in the 🔒 ` strict ` config.
4+
35<!-- end auto-generated rule header -->
46
57This rule effects failures if the ` shareReplay ` operator is used without its reference counting behavior
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export const createStrictConfig = (
2525 'rxjs-x/no-misused-observables' : 'error' ,
2626 'rxjs-x/no-nested-subscribe' : 'error' ,
2727 'rxjs-x/no-redundant-notify' : 'error' ,
28+ 'rxjs-x/no-sharereplay-before-takeuntil' : 'error' ,
2829 'rxjs-x/no-sharereplay' : 'error' ,
2930 'rxjs-x/no-subclass' : 'error' ,
3031 'rxjs-x/no-subject-unsubscribe' : 'error' ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export const noSharereplayBeforeTakeuntilRule = ruleCreator({
88 meta : {
99 docs : {
1010 description : 'Disallow using `shareReplay({ refCount: false })` before `takeUntil`.' ,
11+ recommended : 'strict' ,
1112 } ,
1213 messages : {
1314 forbidden : 'shareReplay before takeUntil is forbidden unless \'refCount: true\' is specified.' ,
You can’t perform that action at this time.
0 commit comments