Hey there.
What version of SonarLint are you using?
Can you please provide a text-based reproducer (i.e not a screenshot of code?)
SonarLint
Version 9.8.0.63668
Warning:
“Either remove this import or add it as a dependency.sonarlint(typescript:S4328)”
Code:
“import TiktokIcon from ‘src/Assets/Svg/tiktok.svg?react’”
Hey there.
This appears to be a SonarQube version, not the version of SonarLint you have installed in your IDE.
SonarLintv4.5.1
Hello @Ihor_Ionashku,
thanks for reporting this. Indeed this is a false positive due to query parameters not being handled in that rule.
I created a ticket to fix this: [JS-168] - Jira
Cheers!
1 Like