Skip to content

definition for rule 'unicorn/consistent-function-scoping' was not found unicorn/consistent-function-scoping #690

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

Closed
zilahir opened this issue Apr 21, 2020 · 5 comments

Comments

@zilahir
Copy link

zilahir commented Apr 21, 2020

This issue is present both underű"eslint-plugin-unicorn": "^17.1.0"an"eslint-plugin-unicorn": "^18.0.1"`. It seems like it's not a version issue since this rule exists for a while, though I would like to turn it for in a specific case.

Any idea how to solve this?

Thanks

@zilahir
Copy link
Author

zilahir commented Apr 21, 2020

the rule's file is present at: ./node_modules/eslint-plugin-unicorn/rules/consistent-function-scoping.j so that can't be the problem here.

@fisker
Copy link
Collaborator

fisker commented Apr 21, 2020

Does this help?

@zilahir
Copy link
Author

zilahir commented May 1, 2020

hah, weird, but yes, it did! thanks!

@zilahir zilahir closed this as completed May 1, 2020
@zilahir zilahir reopened this May 1, 2020
@fisker
Copy link
Collaborator

fisker commented May 1, 2020

You'll have to find the wrong version of eslint-plugin-unicorn yourself, it has to be somewhere, we can't really help.

@zilahir
Copy link
Author

zilahir commented May 1, 2020

@fisker i just managed to figure it out. The problem was that my own linter configuration was extended by default the unicorn, even though it was not within it's peer dependencies. So it was all my mistake.

I deleted my comment, thought i will be faster than you are, but you were quicker. Anyway, the problem was on my side.

Thank you for your time! :)

@zilahir zilahir closed this as completed May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants