Skip to content

eslint/no-global-assign Correctness

This rule is turned on by default.

What it does

Disallow modifications to read-only global variables.

Why is this bad?

In almost all cases, you don’t want to assign a value to these global variables as doing so could result in losing access to important functionality.

Example

javascript
Object = null;

References

Released under the MIT License.