Skip to content
Permalink
Browse files

Docs: add more examples for no-func-assign (fixes #13705) (#13777)

  • Loading branch information
snitin315 committed Oct 22, 2020
1 parent 17cc0dd commit 637f8187404ded600fb3d4013b3cd495d5ae675b
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/rules/no-func-assign.md
@@ -22,6 +22,10 @@ foo = bar;
function foo() {
foo = bar;
}
var a = function hello() {
hello = 123;
};
```

Examples of **incorrect** code for this rule, unlike the corresponding rule in JSHint:

0 comments on commit 637f818

Please sign in to comment.
You can’t perform that action at this time.