From 4097f47b1dafaf9982627804a8f38cde69be86aa Mon Sep 17 00:00:00 2001 From: Nikita Lutsenko Date: Sun, 21 Feb 2016 01:51:08 -0800 Subject: [PATCH] Add and enable Flow type checking. --- .babelrc | 10 +++++++--- .flowconfig | 9 +++++++++ package.json | 3 +++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .flowconfig diff --git a/.babelrc b/.babelrc index 3c078e9f..7273d212 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,9 @@ { - "presets": [ - "es2015" - ] + "plugins": [ + "transform-flow-strip-types" + ], + "presets": [ + "es2015", + "stage-0" + ] } diff --git a/.flowconfig b/.flowconfig new file mode 100644 index 00000000..c13f93b6 --- /dev/null +++ b/.flowconfig @@ -0,0 +1,9 @@ +[ignore] +.*/node_modules/ +.*/lib/ + +[include] + +[libs] + +[options] diff --git a/package.json b/package.json index 2d7fa619..cc2ff211 100644 --- a/package.json +++ b/package.json @@ -29,11 +29,14 @@ "babel-cli": "^6.5.1", "babel-core": "^6.5.1", "babel-istanbul": "^0.6.0", + "babel-plugin-transform-flow-strip-types": "^6.5.0", "babel-preset-es2015": "^6.5.0", + "babel-preset-stage-0": "^6.5.0", "babel-register": "^6.5.1", "codecov": "^1.0.1", "cross-env": "^1.0.7", "deep-diff": "^0.3.3", + "flow-bin": "^0.22.0", "gaze": "^0.5.2", "jasmine": "^2.3.2", "mongodb-runner": "^3.1.15",