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
A lot of types in the wild are either only set on Window or differ between window.* and globalThis.*. These types are wrong, but they do come up when this rule is applied.
There are a few ways that this rule can help with the migration:
disable the rule's auto-fix in TS files
extend the message to specify how to specify the type
A lot of types in the wild are either only set on
Window
or differ betweenwindow.*
andglobalThis.*
. These types are wrong, but they do come up when this rule is applied.There are a few ways that this rule can help with the migration:
Examples:
prefer-global-this
should allowwindow.setTimeout()
andsetInterval()
#2482no-var
onglobals.d.ts
xojs/eslint-config-xo-typescript#91prefer-global-this
should ignoretypeof window === 'undefined'
#2468Originally posted by @fregante in #2482 (comment)
The text was updated successfully, but these errors were encountered: