You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a script which scrapes web specifications to see what
variables/classes/functions are global in web browsers. Teach
quick-lint-js about these global variables to reduce false positives for
browser code.
Unfortunately, browsers have some global variables which might be common
in user code, such as 'length' and 'name'. In the future, we might
decide to trade some false positives for some false negatives. For now,
be conservative and err on the side of false negatives by including all
spec'd global variables.
I didn't check if the globals can be reassigned or shadowed. Err on the
side of false negatives by treating all these variables as writable and
shadowable.
0 commit comments