Skip to content

Commit 38909f4

Browse files
Remove redundant *flow-bin* dependency (#341)
* Remove flow-bin completely from dependencies * Install flow-bin@^0.163.0 as dev dependency * Adjust flow configuration to the latest of Flow
1 parent c356c51 commit 38909f4

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

.flowconfig

+1-9
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ module.system.node.resolve_dirname=node_modules
3636
module.system.node.resolve_dirname=src
3737
emoji=true
3838

39-
esproposal.optional_chaining=enable
40-
esproposal.nullish_coalescing=enable
41-
4239
module.file_ext=.js
4340
module.file_ext=.json
4441
module.file_ext=.ios.js
@@ -53,10 +50,6 @@ suppress_type=$FlowFixMe
5350
suppress_type=$FlowFixMeProps
5451
suppress_type=$FlowFixMeState
5552

56-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
57-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
58-
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
59-
6053
[lints]
6154
sketchy-null-number=warn
6255
sketchy-null-mixed=warn
@@ -65,7 +58,6 @@ untyped-type-import=warn
6558
nonstrict-import=warn
6659
deprecated-type=warn
6760
unsafe-getters-setters=warn
68-
inexact-spread=warn
6961
unnecessary-invariant=warn
7062
signature-verification-failure=warn
7163
deprecated-utility=error
@@ -80,4 +72,4 @@ untyped-import
8072
untyped-type-import
8173

8274
[version]
83-
^0.113.0
75+
^0.163.0

src/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,13 @@
3131
"babel-jest": "^24.9.0",
3232
"babel-plugin-module-resolver": "3.1.3",
3333
"eslint": "^6.5.1",
34-
"flow-bin": "0.113.0",
34+
"flow-bin": "^0.163.0",
3535
"jest": "^24.9.0",
3636
"metro-react-native-babel-preset": "^0.56.0",
3737
"react-test-renderer": "16.9.0"
3838
},
3939
"repository": {
4040
"type": "git",
4141
"url": "https://github.com/callstack/react-native-slider.git"
42-
},
43-
"dependencies": {
44-
"flow-bin": "0.113.0"
4542
}
4643
}

yarn.lock

+4-6
Original file line numberDiff line numberDiff line change
@@ -2197,8 +2197,6 @@
21972197

21982198
"@react-native-community/slider@file:src":
21992199
version "4.1.11"
2200-
dependencies:
2201-
flow-bin "0.113.0"
22022200

22032201
"@react-native-windows/[email protected]":
22042202
version "0.65.0"
@@ -4499,10 +4497,10 @@ flatted@^2.0.0:
44994497
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08"
45004498
integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==
45014499

4502-
flow-bin@0.113.0:
4503-
version "0.113.0"
4504-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.113.0.tgz#6457d250dbc6f71ca51e75f00a96d23cde5d987a"
4505-
integrity sha512-76uE2LGNe50wm+Jup8Np4FBcMbyy5V2iE+K25PPIYLaEMGHrL1jnQfP9L0hTzA5oh2ZJlexRLMlaPqIYIKH9nw==
4500+
flow-bin@^0.163.0:
4501+
version "0.163.0"
4502+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.163.0.tgz#c2cb62e336cfdeac035a4cc86e143e1e5ff4d1d0"
4503+
integrity sha512-4rNdO/lT38/c+8SR4eZK+PthE9c3MFiDnr8TYBpIM77EkM2yl9Ug8N2oPPk0UJs6kG93Yb61G14s95dfSoUARA==
45064504

45074505
flow-parser@0.*:
45084506
version "0.159.0"

0 commit comments

Comments
 (0)