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

@typescript-eslint/utils dependency is missing #456

Closed
Grmiade opened this issue Mar 29, 2024 · 3 comments · Fixed by #457
Closed

@typescript-eslint/utils dependency is missing #456

Grmiade opened this issue Mar 29, 2024 · 3 comments · Fixed by #457
Milestone

Comments

@Grmiade
Copy link

Grmiade commented Mar 29, 2024

We have this error with the 0.25.0 version: Error: Failed to load plugin 'sonarjs' declared in '.eslintrc » eslint-config-payfit/rules/common/sonarjs': eslint-plugin-sonarjs tried to access @typescript-eslint/utils, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

@typescript-eslint/utils should be declared as a dependency.
See https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/src/rules/no-use-of-empty-return-value.ts#L22 by example.

@DEVTomatoCake
Copy link

(Also for reference: #453 (comment))

@ericmorand-sonarsource
Copy link
Contributor

ericmorand-sonarsource commented Apr 3, 2024

@Grmiade, version 0.25.1 - fixing the issue - was released. Can you please give it a try and let us know how it goes?

@DEVTomatoCake
Copy link

It works for me using the latest version, thanks!

@ericmorand-sonarsource ericmorand-sonarsource removed their assignment Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants