Skip to content

Commit 8f0c7e8

Browse files
docs(no-subscribe-handlers): when not to use it
1 parent 7108d75 commit 8f0c7e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/rules/no-subscribe-handlers.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,19 @@ of(42, 54)
3535
.pipe(tap((value) => console.log(value)))
3636
.subscribe();
3737
```
38+
39+
## When Not To Use It
40+
41+
If you don't require all logic to go in the `pipe` section of your observables, then you don't need this rule.
42+
Also, if your project uses `no-ignored-subscribe`, which is the opposite of this rule, then you should not use this rule.
43+
44+
Type checked lint rules are more powerful than traditional lint rules, but also require configuring type checked linting.
45+
46+
## Related To
47+
48+
- [`no-ignored-subscribe`](./no-ignored-subscribe.md)
49+
50+
## Resources
51+
52+
- [Rule source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/src/rules/no-subscribe-handlers.ts)
53+
- [Test source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/tests/rules/no-subscribe-handlers.test.ts)

0 commit comments

Comments
 (0)