Skip to content

Commit 792e568

Browse files
docs(no-explicit-generics): when not to use it
1 parent fe9fb46 commit 792e568

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/rules/no-explicit-generics.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ import { BehaviorSubject } from "rxjs";
2020
const subject = new BehaviorSubject(42);
2121
```
2222

23-
## Known problems
23+
## When Not To Use It
24+
25+
This rule has known problems in the latest release:
2426

2527
- ([#77](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/issues/77)) Type unions cause false positives e.g. `new BehaviorSubject<number | null>(null)` will be incorrectly caught by this rule.
28+
29+
## Resources
30+
31+
- [Rule source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/src/rules/no-explicit-generics.ts)
32+
- [Test source](https://github.com/JasonWeinzierl/eslint-plugin-rxjs-x/blob/main/tests/rules/no-explicit-generics.test.ts)

0 commit comments

Comments
 (0)