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
Similar to prefer-global/process it should enforce that setImmediate is imported from node:timers. This is needed in order to ensure Deno compatibility (denoland/deno#17248 (comment))
Rule details
Similar to
prefer-global/process
it should enforce thatsetImmediate
is imported fromnode:timers
. This is needed in order to ensure Deno compatibility (denoland/deno#17248 (comment))What type of rule is this?
Warns about a potential problem
Example code
https://nodejs.org/api/timers.html#setimmediatecallback-args
Participation
Additional comments
This probably applies to
setInterval
andsetTimeout
as well, which is why I proposedprefer-global/timers
as a rule nameThe text was updated successfully, but these errors were encountered: