mui / mui-public

The public mono-repository of MUI (as an organization), see mui/mui-private for the opposite.
80 stars 16 forks source link

[code-infra] Remove redundant window prefixes for globals #195

Open oliviertassinari opened 2 months ago

oliviertassinari commented 2 months ago

Summary

We mix the use of window.setTimeout with setTimeout in the codebase (as well as with a bunch of other globals). I think that for the most common globals, it's not needed. I can see us banning the use of the window. version with an eslint rule. We will save a bit of network space, smaller bundle size.

Examples

https://github.com/search?q=org%3Amui+window.setTimeout&type=code vs. https://github.com/search?q=org%3Amui+setTimeout&type=code.

Motivation

No response

Search keywords: -