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 was not found

See original GitHub issue

Hi there, sorry to bother with this, but I’m running into an issue, only when building, in this public repo.

The issue is with disabling an eslint rule concerning a line. For now, I can just use // eslint-disable-next-line, but I don’t like that because I lose the information of what exactly I’m trying to disable on that line. The file in question is here on line 22. (For now I just have an additional comment above the line, noting what I am disabling, please don’t mind that.)

The error I’m getting when building is:

Definition for rule 'functional/immutable-data' was not found  functional/immutable-data

There is a place in my code where I have to mutate some data. Of course, not an issue, so I added

// eslint-disable-next-line functional/immutable-data

Above the line I needed to skip. That worked fine, the error went away in my vscode “problems” pane just like I expected it to.

The thing is, when building, the error showed up and stopped the build. Strange…

The .eslintrc.js is here. The tsconfig.json is here.

If anyone has any ideas or pointers I’d really appreciate it. Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

1reaction
DylanRJohnstoncommented, Oct 2, 2020
0reactions
RebeccaStevenscommented, Jul 25, 2021

Closing due to no response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint why does my plugin show Definition for rule was not ...
It means eslint cannot find rules in your index.js . Try having a look at your index ...
Read more >
Definition for rule was not found · Issue #182 - GitHub
Hello ! I'm trying to use eslint-config-airbnb-typescript in my project but WebStorm throw this errors: ESLint: Definition for rule ...
Read more >
Definition for rule typescript-eslint no-shadow was not found
I am working on migrating from tslint to eslint. The basic migration seems ... Definition for rule typescript-eslint no-shadow was not found.
Read more >
How To Write a Custom ESLint Rule | by Carrie Reid-Knox
If it identifies that a node is in violation of a defined rule, ... see that the linter rule did not fire, and...
Read more >
Working with Rules - ESLint - Pluggable JavaScript Linter
"suggestion" means the rule is identifying something that could be done in a better way but no errors will occur if the code...
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