Skip to content

Commit

Permalink
Docs: add more examples for no-func-assign (fixes #13705) (#13777)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 22, 2020
1 parent 17cc0dd commit 637f818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-func-assign.md
Expand Up @@ -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:
Expand Down

0 comments on commit 637f818

Please sign in to comment.