Skip to content
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

Fails when run in Jest via ESLint Node.js API #52

Open
silvenon opened this issue Jan 22, 2020 · 0 comments · May be fixed by #53
Open

Fails when run in Jest via ESLint Node.js API #52

silvenon opened this issue Jan 22, 2020 · 0 comments · May be fixed by #53

Comments

@silvenon
Copy link

silvenon commented Jan 22, 2020

This demo shows that eslint-plugin-fp doesn't seem to work when run in Jest via ESLint Node.js API, ESLint reports an error for every fp/* rule, for example:

Definition for rule 'fp/no-let' was not found  fp/no-let

as if I didn't add fp to plugins in my ESLint configuration.

  • this only happens with eslint-plugin-fp, I threw eslint-plugin-import in there, too, and it works
  • this only happens in combination with Jest, try running yarn script which also runs ESLint via Node.js API, and it works

That's as far as I got. 😄

@silvenon silvenon linked a pull request Jan 23, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant