Closed pawel2105 closed 7 years ago
There are multiple ways to solve this but standard itself suggests to always prefix with window
:
Always prefix browser globals with
window
– exceptdocument
andnavigator
are okay. Prevents accidental use of poorly-named browser globals likeopen
,length
,event
, andname
.
@sonicdoe of course! Thank you.
How can I remove warnings for definition of localStorage? In a JS file I can use it without issue but the plugin complains about a lack of definition.
I don't want to use comment exceptions since localStorage (in my case) is used quite a lot throughout a project and I don't want to litter files with linting exception comments. Is there a global entry I can add or something?