# disallow the globalThis variable (es/no-global-this)

This rule reports ES2020 globalThis variable as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-global-this: error */ console.log(globalThis === window)
Now loading...

# 📚 References