no-func-assign
NOTE: this rule is part of the 
recommended rule set.Enable full set in 
deno.json:{
  "lint": {
    "rules": {
      "tags": ["recommended"]
    }
  }
}Enable full set using the Deno CLI:
deno lint --rules-tags=recommended
This rule can be explictly included to or excluded from the rules present in the current tag by adding it to the 
include or exclude array in deno.json:{
  "lint": {
    "rules": {
      "include": ["no-func-assign"],
      "exclude": ["no-func-assign"]
    }
  }
}Disallows the overwriting/reassignment of an existing function.
Javascript allows for the reassignment of a function definition. This is generally a mistake on the developers part, or poor coding practice as code readability and maintainability will suffer.
Invalid:
function foo() {}
foo = bar;
const a = function baz() {
  baz = "now I'm a string";
};
myFunc = existingFunc;
function myFunc() {}
Valid:
function foo() {}
const someVar = foo;
const a = function baz() {
  const someStr = "now I'm a string";
};
const anotherFuncRef = existingFunc;
let myFuncVar = function () {};
myFuncVar = bar; // variable reassignment, not function re-declaration