question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
zilahircommented, 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! 😃

1reaction
fiskercommented, Apr 21, 2020

Does this help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-plugin-unicorn
More than 100 powerful ESLint rules. ... Propose or contribute a new rule ➡ ... "unicorn/no-object-as-default-parameter": "error", ...
Read more >
eslint-plugin-unicorn/readme.md
9, [**Propose or contribute a new rule ➡**](.github/contributing.md) ... 52, "unicorn/no-abusive-eslint-disable": "error",.
Read more >
eslint why does my plugin show Definition for rule was not ...
Do you have a shared config published? It seems like you're working on a plugin, not a config. You're then using a rule...
Read more >
sindresorhus/eslint-plugin-unicorn (Raised $2856.00)
definition for rule 'unicorn/consistent-function-scoping' was not found unicorn/consistent-function-scoping. Unfunded#690created byzilahir.
Read more >
https://raw.githubusercontent.com/itgalaxy/eslint-...
125.0.0 - 2020-04-01 - Added: `node/no-restricted-import` rule. - Added: `unicorn/prefer-set-has` ... Added: `unicorn/consistent-function-scoping` rule.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found