-
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(linter): fix some cases on
AssignmentExpression
for ```unic…
…orn/consistent-function-scoping``` (#5675) This is to fix the cases mentioned in the comment section of #5365. In short, it will report these as PASS test cases: ```js let inner; function foo1() { inner = function() {} } function foo2() { inner = function() {} } ``` ```js let inner; function outer() { inner = function() {} } ``` And report these below as FAIL test cases: ```js let inner; function foo1() { inner = function smth() {} } function foo2() { inner = function bar() {} } ``` ```js let inner; function outer() { inner = function inner() {} } ``` The case below was already done in #5312 but mentioned in #5365. It is a FAIL case as well: ```js function outer() { const inner = function inner() {} } ``` --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Don Isaac <[email protected]>
- Loading branch information
1 parent
dc10eaf
commit 737ba1d
Showing
2 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters