-
Notifications
You must be signed in to change notification settings - Fork 1
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
Circular dependency error when using recommended #49
Comments
I tried to replicate the problem here https://github.com/DaveMBush/eslint-plugin-rxjs/tree/dmb/circular-dependency-error-when-using-recommended/49/tests/using-recommended and I don't see the circular dependency issue (even though I admit it is probably there). I would like to be able to produce a test that replicates this issue, but for that I need to know more about what you are doing. Could you create a small sample in a repository I can access so I can create the test please? |
I reproduced the error on this stackblitz: I think it has something to do with the external eslintrc.js file of mine. |
This has been addressed in 1.0.16 |
Describe the bug
When I lint a project of mine that contains your recommended plugin I get a circular dependency error:
If I manually add the recommended rules to my project it works. So this means that the problem is located in your library.
I located the circular dependency by logging a
util.inspect
for your library:In this output you can see the cause of the circular dependency:
The
plugins
key in the recommended configuration is set to{ '@smarttools/rxjs': [Circular *1] }
which refers back to the main plugin object (rxjs
) itself.I fixed this issue by removing this redundant
plugins
property bothindex.ts
andrecommended.ts
.index.ts:
recommended.ts:
Repro
Version of @smarttools/eslint-plugin-rxjs you are using: 1.0.13
The text was updated successfully, but these errors were encountered: