SonarJS - upgrade dependency typescript-eslint v7

SonarJS is preventing us from updating eslint-plugin to v7 which was released a week ago.


Please upgrade dependencies in SonarJS/package.json at master · SonarSource/SonarJS · GitHub.


Hey there

What is preventing you from updating it in your project? I don’t understand the dependency.

Screenshots, logs, error messages… anything helps. :smiley:

Hi. I am using eslint-plugin-sonar which currently depends on SonarJS. It has a peer dependency on typescript-eslint/parser v6 still because I assume is a dependency usage of your scanner (see author comment Peer support for @typescript-eslint/eslint-plugin v7 · Issue #128 · un-ts/eslint-plugin-sonar · GitHub) and he wants to stay aligned. I have seen similar requests to bump dependency version e.g. FYI: typescript-eslint@v6 will remove parserServices.hasFullTypeInformation · Issue #4005 · SonarSource/SonarJS · GitHub) and I thought of dropping this post to bring awareness there is an update.

FYI… If I try to use v7, then dependency conflicts during npm install (due to peer dependency)

⮞ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: xxxxxxxx:1.0.0
npm ERR! Found: typescript-eslint/eslint-plugin:6.21.0
npm ERR! node_modules/typescript-eslint/eslint-plugin
npm ERR! dev typescript-eslint/eslint-plugin:“^7.0.2” from the root project
npm ERR! typescript-eslint/eslint-plugin:“^6.16.0” from eslint-plugin-sonar:0.13.2
npm ERR! node_modules/eslint-plugin-sonar
npm ERR! dev eslint-plugin-sonar:“^0.13.2” from the root project

Any chance on updating typescript-eslint/eslint-plugin dependency to v7 in the next release?

This has already been updated. Thanks for the feedback!