Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.6k
demo getting require cycles working#2706
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
x-posting my own comment with more details from the issue. This now detects cycles, like so, as well as how I got it working locally.
And as an aside, for anybody else, I got this working pretty cleanly for local development via:
|
This will need some test cases to be able to land. |
If I fix this up, is it something you'd be interested in merging? It seems like this might break a lot of projects, if I'm correct that |
This is a potential solution for the issue describedhere.
I haven't tested this extensively, but it finds require cycles in this project:
https://github.com/simonbuchan/eslint-import-cycle-example
It seems to have been going wrong in two places:
unambiguous()
test, which is a regex I'm not really following