Uncomment test for noFunctionAssign lint rule
MODIFY
packages/@romejs/compiler/lint/rules/js/noFunctionAssign.test.ts
packages/@romejs/compiler/lint/rules/js/noFunctionAssign.test.ts
@@ -26,8 +26,7 @@ test(
valid: [
"function foo() { var foo = bar; }",
"function foo(foo) { foo = bar; }",
- // Should be valid but fails
- //"function foo() { var foo; foo = bar; }",
+ "function foo() { var foo; foo = bar; }",
"var foo = () => {}; foo = bar;",
"var foo = function() {}; foo = bar;",
"var foo = function() { foo = bar; };",

Uncomment test for noFunctionAssign lint rule (#590)