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
Valid 'no-cycle' value #2250
Valid 'no-cycle' value #2250
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #2249. This is a valid value; it’s a bug in eslint v7.3.0. Stick to eslint v7.2 for now.
Ok, thanks for quick reply. Wonder if there is some kind of |
Yes, that’s the exact bug - see #2246, #2245, and eslint/eslint#13427 |
@ljharb Thanks for the links. Will be closing this. Also, posted this FYI: eslint/eslint#13427 (comment) |
No need to close it; i'll repurpose it if eslint doesn't fix this quickly. |
Ok @ljharb, I'll leave it as is |
What's the objection to using |
…import/no-cycle` `maxDepth` option
13c3812
to
7e076c7
Compare
Changed to |
@boeric I'm not comfortable using that value. I'll force push this back to the final implementation, which will pass tests once eslint-plugin-import has a release. |
9da160e
to
7e076c7
Compare
@ljharb what is specifically wrong with |
It's not an equals sign, it's an infinity sign. The next release of eslint-plugin-import will treat |
@ljharb I need to upgrade my eye glasses... I see what you're doing, thanks. I'll be closing this PR |
@boeric please leave it open; i'll be merging it once eslint-plugin-import is released. |
@ljharb Ok |
7e076c7
to
c5bee75
Compare
With the just released eslint 7.3.0, the rule no-cycle's maxDepth value of
Infinity
is converted tonull
by eslint, which is invalid. This PR changes maxDepth fromInfinity
toNumber.MAX_VALUE