Skip to content

Commit ca7ad27

Browse files
docs(no-unsafe-switchmap): when not to use it
1 parent e08fc72 commit ca7ad27

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/rules/no-unsafe-switchmap.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ The `allow` or `disallow` properties are mutually exclusive. Whether or not `swi
4747

4848
The properties in the options object are themselves optional; they do not all have to be specified.
4949

50+
## When Not To Use It
51+
52+
If you don't use a library with effects and epics (e.g. NgRx or redux-observable),
53+
then you don't need this rule.
54+
55+
Type checked lint rules are more powerful than traditional lint rules, but also require configuring type checked linting.
56+
5057
## Further reading
5158

5259
- [Avoiding switchMap-related bugs](https://ncjamieson.com/avoiding-switchmap-related-bugs/)
60+
61+
## Resources
62+
63+
- [Rule source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/src/rules/no-unsafe-switchmap.ts)
64+
- [Test source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/tests/rules/no-unsafe-switchmap.test.ts)

0 commit comments

Comments
 (0)