no-global-object-property-assignment
UnreleasedConfiguration
rslint.config.ts
Disallow assigning properties on the global object.
Global object mutation makes state harder to trace and can overwrite existing globals. Prefer module scope, explicit imports/exports, dependency injection, or a local singleton.
The rule checks statically named properties on the effective global global, globalThis, self, and window bindings. Shadowed bindings and dynamic computed properties are ignored. Reads and delete expressions are also allowed.
This port follows eslint-plugin-unicorn v75.0.0.