no-func-assign
Configuration
rslint.config.ts
Rule Details
Disallows reassigning variables that were declared as function declarations. Reassigning a function declaration is almost always a mistake, as it overwrites the function with a different value. This rule checks for assignments, increment/decrement operations, and destructuring assignments that target a function name.
Examples of incorrect code for this rule:
Examples of correct code for this rule: