Skip to content

[no-unused-vars] "exported" declaration ignored for interface containing a function returning the interface itself #2782

Closed
@marekdedic

Description

@marekdedic
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

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 3 no-unused-vars errors for no-exported.ts.

Actual Result

In the repro, I get 1 error for the exported.ts file (specifically for the non-empty interface) and 3 no-unused-vars errors for no-exported.ts.

Versions

package version
@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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions