When SonarLint detects usage of
console.log and the user clicks to disable the rule, the rule which is disabled in
S106. This has no effect and the usage of
console.log is still marked. The rule which needs disabling is
Hello, welcome to the community! And thank you for reporting this.
As far as I can tell,
S106 about 2 years ago).
Out of the box in recent versions of SonarLint, uses of
console.log should be flagged by
Please note that this rule is not enabled by default, so my guess is that you might have enabled
S2228 a long time ago, and now that it has been superseded by
S106, the latter is enabled (through backward compatibility), but if you want to disable it, you have to do it manually in your user settings, by deleting any entry that looks like this:
// Start delete below
// End delete above