Skip to content

Commit ce09260

Browse files
docs(eslint-plugin): [no-unnecessary-type-parameters] add admonition about rule's potential for subtlety (#9690)
put back an admonition for no-unnecessary-type-parameters
1 parent 48fc385 commit ce09260

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ It can usually be replaced with explicit types such as `unknown`.
1818
At best unnecessary type parameters make code harder to read.
1919
At worst they can be used to disguise unsafe type assertions.
2020

21+
:::warning
22+
This rule was recently added, and has a surprising amount of hidden complexity compared to most of our rules. If you encounter unexpected behavior with it, please check closely the [Limitations](#limitations) section below and our [issue tracker](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+no-unnecessary-type-parameters).
23+
If you don't see your case covered, please [reach out to us](https://typescript-eslint.io/contributing/issues)!
24+
:::
25+
2126
## Examples
2227

2328
<Tabs>

0 commit comments

Comments
 (0)