[no-unused-vars] "exported" declaration ignored for interface containing a function returning the interface itself #2782
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
See https://gist.github.com/marekdedic/d5f1c0ef082159c9641176d367738b15 and run
npm run lint
Expected Result
In the repro, I would expect to get no errors for the
exported.ts
file and 3no-unused-vars
errors forno-exported.ts
.Actual Result
In the repro, I get 1 error for the
exported.ts
file (specifically for the non-empty interface) and 3no-unused-vars
errors forno-exported.ts
.Versions
@typescript-eslint/eslint-plugin
4.8.1
@typescript-eslint/parser
4.8.1
TypeScript
4.0.5
ESLint
7.13.0
node
14.15.1
Let me know if any additional info is needed ;)
The text was updated successfully, but these errors were encountered: