use flow instead of flow-comments

This commit is contained in:
Henry Zhu 2016-03-03 18:04:45 -05:00
parent b88182cacf
commit 937b8a6767
5 changed files with 7 additions and 10 deletions

View File

@ -45,14 +45,11 @@
"loose": [ "loose": [
"all" "all"
], ],
"plugins": [
"flow-comments"
],
"blacklist": [ "blacklist": [
"flow",
"es6.tailCall" "es6.tailCall"
], ],
"optional": [ "optional": [
"flow",
"optimisation.flow.forOf", "optimisation.flow.forOf",
"runtime" "runtime"
], ],

View File

@ -1,7 +1,7 @@
function A() { function A() {
var a = undefined; var a = void 0;
} }
function B() { function B() {
var a = undefined; var a = void 0;
} }

View File

@ -4,7 +4,7 @@
return i; return i;
}); });
return { return {
v: undefined v: void 0
}; };
}; };

View File

@ -1,5 +1,5 @@
while (value) { while (value) {
var foo = undefined; var foo = void 0;
if (bar) { if (bar) {
foo = []; foo = [];

View File

@ -22,8 +22,8 @@ var Foo = function (_Bar) {
var ConstructorScoping = function ConstructorScoping() { var ConstructorScoping = function ConstructorScoping() {
babelHelpers.classCallCheck(this, ConstructorScoping); babelHelpers.classCallCheck(this, ConstructorScoping);
var bar = undefined; var bar = void 0;
{ {
var _bar = undefined; var _bar = void 0;
} }
}; };