Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f936349

Browse files
author
Josh Goldberg
authored
docs(eslint-plugin): mention constructor privacy limitation on no-useless-constructor (typescript-eslint#4377)
1 parent 13583e6 commit f936349

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/eslint-plugin/docs/rules/no-useless-constructor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/
2929

3030
</sup>
3131

32+
## Caveat
33+
34+
This lint rule will report on constructors whose sole purpose is to change visibility of a parent constructor.
35+
See [discussion on this rule's lack of type information](https://github.com/typescript-eslint/typescript-eslint/issues/3820#issuecomment-917821240) for context.
36+
3237
## Attributes
3338

3439
- [ ] ✅ Recommended

0 commit comments

Comments
 (0)