Skip to content

Commit 01fcc5c

Browse files
committed
upgrade flow
1 parent 78dc819 commit 01fcc5c

File tree

3 files changed

+46
-15
lines changed

3 files changed

+46
-15
lines changed

.flowconfig

+42-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,53 @@
11
[ignore]
22
.*/node_modules/babel.*
33
.*/node_modules/editions/.*
4-
.*/node_modules/fbjs/.*
5-
.*/node_modules/immutable/.*
6-
.*/node_modules/.*.json
7-
.*/node_modules/draft-js/.*
8-
.*/node_modules/react/.*
94
.*/node_modules/radium/.*
5+
.*/docs/node_modules/fbjs/.*
6+
.*/docs/node_modules/.*
7+
.*/node_modules/config-chain/.*
8+
.*/draft-js-alignment-plugin/node_modules/.*
9+
.*/draft-js-anchor-plugin/node_modules/.*
10+
.*/draft-js-buttons/node_modules/.*
11+
.*/draft-js-counter-plugin/node_modules/.*
12+
.*/draft-js-drag-n-drop-plugin/node_modules/.*
13+
.*/draft-js-drag-n-drop-upload-plugin/node_modules/.*
14+
.*/draft-js-emoji-plugin/node_modules/.*
15+
.*/draft-js-focus-plugin/node_modules/.*
16+
.*/draft-js-hashtag-plugin/node_modules/.*
17+
.*/draft-js-image-plugin/node_modules/.*
18+
.*/draft-js-inline-toolbar-plugin/node_modules/.*
19+
.*/draft-js-linkify-plugin/node_modules/.*
20+
.*/draft-js-mention-plugin/node_modules/.*
21+
.*/draft-js-plugins-editor/node_modules/.*
22+
.*/draft-js-resizeable-plugin/node_modules/.*
23+
.*/draft-js-side-toolbar-plugin/node_modules/.*
24+
.*/draft-js-static-toolbar-plugin/node_modules/.*
25+
.*/draft-js-sticker-plugin/node_modules/.*
26+
.*/draft-js-undo-plugin/node_modules/.*
27+
.*/draft-js-video-plugin/node_modules/.*
28+
.*/node_modules/chalk/.*
29+
.*/node_modules/relay-compiler/.*
30+
.*/node_modules/relay-runtime/.*
31+
.*/node_modules/documentation/.*
32+
.*/node_modules/draft-js/lib/BlockNode.js.flow
33+
.*/node_modules/draft-js/lib/DraftEditorDragHandler.js.flow
34+
.*/node_modules/draft-js/lib/DraftEditorLeaf.react.js.flow
35+
.*/node_modules/draft-js/lib/DraftEditor.react.js.flow
36+
1037

1138
[include]
39+
flow-typed
1240

1341
[libs]
14-
./interfaces/CSSModule.js
15-
./interfaces/findWithRegex.js
42+
flow-lib
1643

1744
[options]
18-
esproposal.class_static_fields=enable
19-
esproposal.class_instance_fields=enable
20-
module.name_mapper='.*\(.css\)' -> 'CSSModule'
21-
module.name_mapper='draft-js' -> 'Draft'
2245
module.system=haste
46+
module.use_strict=true
47+
module.name_mapper='.*\(.css\)' -> 'CSSModule'
48+
module.file_ext=.js
49+
module.file_ext=.json
50+
module.file_ext=.css
51+
52+
[version]
53+
^0.69.0

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"estraverse-fb": "^1.3.1",
7272
"express": "^4.15.0",
7373
"extract-text-webpack-plugin": "^2.0.0",
74-
"flow-bin": "^0.40.0",
74+
"flow-bin": "^0.69.0",
7575
"jest-cli": "^18.1.0",
7676
"jsdom": "^11.3.0",
7777
"lint-staged": "^3.3.1",

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -3427,9 +3427,9 @@ flatten@^1.0.2:
34273427
version "1.0.2"
34283428
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
34293429

3430-
flow-bin@^0.40.0:
3431-
version "0.40.0"
3432-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.40.0.tgz#e10d60846d923124e47f548f16ba60fd8baff5a5"
3430+
flow-bin@^0.69.0:
3431+
version "0.69.0"
3432+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.69.0.tgz#053159a684a6051fcbf0b71a2eb19a9679082da6"
34333433

34343434
fn-name@^2.0.1:
34353435
version "2.0.1"

0 commit comments

Comments
 (0)