Closed
Description
Describe the bug
When anonymous functions are assigned to a module level field or a class field empty newlines are removed.
This doesn't happen if an anonymous function is assigned to a local variable inside of a function.
I was not able to find a setting specific for anonymous functions assigned to class fields so I assume this is a bug.
Input file
class Foo {
var a = function() {
1;
2;
}
}
var b = function() {
1;
2;
}
Broken output
class Foo {
var a = function() {
1;
2;
}
}
var b = function() {
1;
2;
}
Expected output
Empty lines should be preserved.