Hi @khopdee, welcome to the SonarSource Community!
This situation is covered by one of our Security Hotspot rules for Javascript and Security Hotspots are not currently raised directly by SonarLint in standalone mode. If you also have a SonarQube instance and analyze the project containing this code, the hotspot would be raised there and the “Open in IDE” feature available since the last few SonarQube releases would allow you to review it within VS Code.