no-import-assign
Configuration
rslint.config.ts
Rule Details
Disallows assigning to imported bindings. Imports are read-only references to values exported from other modules. Assigning to an import binding is always a mistake, as it will either throw a runtime error or silently fail.
For namespace imports (import * as ns), writing to any member of the namespace object is also disallowed, since namespace objects are frozen.
Examples of incorrect code for this rule:
Examples of correct code for this rule: