I agree we should add it. In the past it was not added because there were many projects not yet using modern JS features and we wanted the default profiles to be non-controversial, however, I think this argument doesn’t hold anymore, as using
let is the norm nowadays.
I created the ticket to add the rule to the default profile S3504 should be part of SonarWay profile · Issue #3101 · SonarSource/SonarJS · GitHub
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.