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

import/no-cycle and flow type imports #1098

Closed
goodmind opened this issue May 6, 2018 · 6 comments
Closed

import/no-cycle and flow type imports #1098

goodmind opened this issue May 6, 2018 · 6 comments
Labels

Comments

@goodmind
Copy link

goodmind commented May 6, 2018

Flow import type doesn't have cycles. How to ignore them?

@ljharb ljharb added the flow label May 7, 2018
@gajus
Copy link
Contributor

gajus commented Jun 26, 2018

@ljharb I can submit a PR for this.

Does this need to be a configurable option or default behaviour?

@ljharb
Copy link
Member

ljharb commented Jun 26, 2018

@gajus I think it can be the default, since there seems to be no value in checking them.

@gajus
Copy link
Contributor

gajus commented Jun 26, 2018

Is that it or am I overlooking something?

#1126

@Hypnosphi
Copy link
Contributor

Flow import type doesn't have cycles

@goodmind Sorry, but what did you mean by that?

@Hypnosphi
Copy link
Contributor

Hypnosphi commented Dec 12, 2019

there seems to be no value in checking them

@ljharb I don't think that's true, see facebook/flow@e6a10b1

Dependency cycles can be bad for Flow performance

See also facebook/flow@d7e7e78 which specifically focuses on type imports

I think there should at least be an option to check type imports with no-cycle

@ljharb
Copy link
Member

ljharb commented Dec 12, 2019

@Hypnosphi an option to enable this checking seems fine to me as well. @goodmind's OP implied there were no cycles; your link seems to successfully dispute this - so perhaps it'd indeed be better to restore this checking by default, with an option to disable it? Not really sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants