Skip to content

Commit 4097f47

Browse files
committed
Add and enable Flow type checking.
1 parent bd54878 commit 4097f47

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.babelrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"presets": [
3-
"es2015"
4-
]
2+
"plugins": [
3+
"transform-flow-strip-types"
4+
],
5+
"presets": [
6+
"es2015",
7+
"stage-0"
8+
]
59
}

.flowconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[ignore]
2+
.*/node_modules/
3+
.*/lib/
4+
5+
[include]
6+
7+
[libs]
8+
9+
[options]

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@
2929
"babel-cli": "^6.5.1",
3030
"babel-core": "^6.5.1",
3131
"babel-istanbul": "^0.6.0",
32+
"babel-plugin-transform-flow-strip-types": "^6.5.0",
3233
"babel-preset-es2015": "^6.5.0",
34+
"babel-preset-stage-0": "^6.5.0",
3335
"babel-register": "^6.5.1",
3436
"codecov": "^1.0.1",
3537
"cross-env": "^1.0.7",
3638
"deep-diff": "^0.3.3",
39+
"flow-bin": "^0.22.0",
3740
"gaze": "^0.5.2",
3841
"jasmine": "^2.3.2",
3942
"mongodb-runner": "^3.1.15",

0 commit comments

Comments
 (0)