Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

@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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants