Remove whitespace generation (#5833)
* Remove whitespace generation and rely on default printing Changes to printing: * Add newline after last empty SwitchCase * Add newlines around block comments if they are non-flow comments or contain newlines * Fix a few more fixtures
This commit is contained in:
committed by
Brian Ng
parent
bc29145465
commit
b3372a572d
@@ -18,5 +18,6 @@
|
||||
});
|
||||
exports.Cachier = Cachier;
|
||||
exports.default = new Cachier();
|
||||
|
||||
function Cachier(databaseName) {}
|
||||
});
|
||||
});
|
||||
@@ -17,5 +17,6 @@
|
||||
value: true
|
||||
});
|
||||
exports.default = foo;
|
||||
|
||||
function foo() {}
|
||||
});
|
||||
});
|
||||
@@ -16,6 +16,8 @@
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
class Foo {}
|
||||
|
||||
exports.default = Foo;
|
||||
});
|
||||
});
|
||||
@@ -20,12 +20,17 @@
|
||||
var foo = exports.foo = 1;
|
||||
var foo2 = exports.foo2 = 1,
|
||||
bar = exports.bar = 2;
|
||||
|
||||
var foo3 = exports.foo3 = function () {};
|
||||
|
||||
var foo4 = exports.foo4 = undefined;
|
||||
let foo5 = exports.foo5 = 2;
|
||||
let foo6 = exports.foo6 = undefined;
|
||||
const foo7 = exports.foo7 = 3;
|
||||
|
||||
function foo8() {}
|
||||
|
||||
class foo9 {}
|
||||
|
||||
exports.foo9 = foo9;
|
||||
});
|
||||
});
|
||||
@@ -18,6 +18,7 @@
|
||||
});
|
||||
exports.isOdd = undefined;
|
||||
exports.nextOdd = nextOdd;
|
||||
|
||||
function nextOdd(n) {
|
||||
return (0, _evens.isEven)(n) ? n + 1 : n + 2;
|
||||
}
|
||||
@@ -27,4 +28,4 @@
|
||||
return !isEven(n);
|
||||
};
|
||||
}(_evens.isEven);
|
||||
});
|
||||
});
|
||||
@@ -14,7 +14,5 @@
|
||||
"use strict";
|
||||
|
||||
var foo = babelHelpers.interopRequireWildcard(_foo);
|
||||
|
||||
|
||||
foo;
|
||||
});
|
||||
});
|
||||
@@ -20,10 +20,7 @@
|
||||
var foo2 = babelHelpers.interopRequireWildcard(_foo);
|
||||
exports.test = test;
|
||||
var test2 = exports.test2 = 5;
|
||||
|
||||
exports.default = test;
|
||||
|
||||
|
||||
_foo.bar;
|
||||
_foo.foo;
|
||||
});
|
||||
});
|
||||
@@ -28,17 +28,12 @@
|
||||
|
||||
var a = 2;
|
||||
exports.a = a;
|
||||
|
||||
exports.a = a = 3;
|
||||
|
||||
var b = 2;
|
||||
exports.c = b;
|
||||
|
||||
exports.c = b = 3;
|
||||
|
||||
var d = 3;
|
||||
exports.e = d;
|
||||
exports.f = d;
|
||||
|
||||
exports.f = exports.e = d = 4;
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user