Skip to content

docs(eslint-plugin): mention constructor privacy limitation on no-useless-constructor #4377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/eslint-plugin/docs/rules/no-useless-constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/

</sup>

## Caveat

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

## Attributes

- [ ] ✅ Recommended
Expand Down