`no-reference-error` reports global variables

location.href = '' // error reported about `location`

Hi,

What language are we talking about here?

Ann

@ganncamp

I’m using TypeScript, the error is reported from SonarJS

Hey @JounQin

Your report is a bit light in information. Can I suggest you look at the following post, and add more details?