Skip to content

[Fix] no-extraneous-dependencies: Exclude flow typeof imports#1534

Merged
ljharb merged 1 commit into
import-js:masterfrom
devongovett:patch-1
Feb 1, 2021
Merged

[Fix] no-extraneous-dependencies: Exclude flow typeof imports#1534
ljharb merged 1 commit into
import-js:masterfrom
devongovett:patch-1

Conversation

@devongovett
Copy link
Copy Markdown
Contributor

Type imports were already ignored, but typeof imports should also be ignored.

For example:

// @flow
import typeof TypeScriptModule from 'typescript';

Co-authored-by: Devon Govett <devongovett@gmail.com>
Co-authored-by: Jordan Harband <ljharb@gmail.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 2, 2019

Coverage Status

Coverage increased (+5.7%) to 71.388% when pulling f2db74a on devongovett:patch-1 into 1031e1c on benmosher:master.

@ljharb ljharb added the flow label Dec 5, 2019
Copy link
Copy Markdown
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you add a regression test for this?

Copy link
Copy Markdown
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased, and went ahead and used the code in your OP as a test case.

@ljharb ljharb merged commit f2db74a into import-js:master Feb 1, 2021
@ljharb ljharb changed the title Exclude flow typeof imports from extraneous dependencies [Fix] no-extraneous-dependencies: Exclude flow typeof imports Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants