Skip to content
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

[no-unused-modules] import type doesn't mark export as used. #1950

Closed
phaux opened this issue Nov 19, 2020 · 2 comments
Closed

[no-unused-modules] import type doesn't mark export as used. #1950

phaux opened this issue Nov 19, 2020 · 2 comments

Comments

@phaux
Copy link

phaux commented Nov 19, 2020

Repro:

// Foo.ts
export interface Foo {}

// index.ts
import type { Foo } from "./Foo"

exported declaration 'Foo' not used within other modules

Config:

{
  "extends": [
    "plugin:import/recommended",
    "plugin:import/typescript",
    // and more ...
  ],
  "rules": {
    "import/no-unused-modules": ["error", { "unusedExports": true }],
  },
}

Versions:

@typescript-eslint/parser: 4.8.0
eslint: 7.13.0
eslint-plugin-import: 2.22.1
@mironiasty
Copy link

I think it is same issue as reported here: #1924

@ljharb
Copy link
Member

ljharb commented Jan 22, 2021

Duplicate of #1924. Fixed by #1974.

@ljharb ljharb closed this as completed Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants