SonarSource / eslint-plugin-sonarjs

SonarJS rules for ESLint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`@typescript-eslint/utils` dependency is missing

Grmiade opened this issue · comments

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.

(Also for reference: #453 (comment))

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

It works for me using the latest version, thanks!