Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Issue Description
Greetings, colleagues!
I faced with a problem of useless constructor with a rule: @typescript-eslint/no-useless-constructor
But in my case, it's false positive, coz here I use NestJS DI capabilities to pass necessary parameters in the constructor.
Yep, I understood, that is eslint
thinkings that my super(repository)
call is useless, but it's not true.
Any ideas? Is it a bug or I misunderstood something?
Reproduction Repository L 5F34 ink
https://github.com/dkrylovdotcom/nestjs-di-eslint-problem
Repro Steps
- clone the repo
- npm run lint
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.28.0 |
@typescript-eslint/parser |
5.28.0 |
TypeScript |
4.7.3 |
ESLint |
8.17.0 |
node |
16.15.0 |