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
@@ -5,5 +5,6 @@ define(["exports"], function (exports) {
|
||||
value: true
|
||||
});
|
||||
exports.default = foo;
|
||||
|
||||
function foo() {}
|
||||
});
|
||||
});
|
||||
@@ -4,6 +4,8 @@ define(["exports"], function (exports) {
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
class Foo {}
|
||||
|
||||
exports.default = Foo;
|
||||
});
|
||||
});
|
||||
@@ -8,12 +8,17 @@ define(["exports"], function (exports) {
|
||||
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;
|
||||
});
|
||||
});
|
||||
@@ -6,6 +6,7 @@ define(["exports", "./evens"], function (exports, _evens) {
|
||||
});
|
||||
exports.isOdd = undefined;
|
||||
exports.nextOdd = nextOdd;
|
||||
|
||||
function nextOdd(n) {
|
||||
return (0, _evens.isEven)(n) ? n + 1 : n + 2;
|
||||
}
|
||||
@@ -15,4 +16,4 @@ define(["exports", "./evens"], function (exports, _evens) {
|
||||
return !isEven(n);
|
||||
};
|
||||
}(_evens.isEven);
|
||||
});
|
||||
});
|
||||
@@ -2,7 +2,5 @@ define(["foo"], function (_foo) {
|
||||
"use strict";
|
||||
|
||||
var foo = babelHelpers.interopRequireWildcard(_foo);
|
||||
|
||||
|
||||
foo;
|
||||
});
|
||||
});
|
||||
@@ -8,12 +8,9 @@ define(["exports", "foo", "foo-bar", "./directory/foo-bar"], function (exports,
|
||||
var foo2 = babelHelpers.interopRequireWildcard(_foo);
|
||||
exports.test = test;
|
||||
var test2 = exports.test2 = 5;
|
||||
|
||||
exports.default = test;
|
||||
|
||||
|
||||
foo2.default;
|
||||
foo2;
|
||||
_foo.bar;
|
||||
_foo.foo;
|
||||
});
|
||||
});
|
||||
@@ -16,17 +16,12 @@ define(["exports"], function (exports) {
|
||||
|
||||
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