diff --git a/.flowconfig b/.flowconfig index 7c4634d45..2bce30b60 100644 --- a/.flowconfig +++ b/.flowconfig @@ -23,4 +23,4 @@ module.name_mapper='flipper' -> '/src/index.js' suppress_type=$FlowFixMe [version] -^0.86.0 +^0.84.0 diff --git a/package.json b/package.json index d4fe472a8..929a8ef05 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "eslint-plugin-prettier": "^2.4.0", "eslint-plugin-react": "^7.5.1", "eslint-plugin-relay": "^0.0.20", - "flow-bin": "^0.86.0", + "flow-bin": "^0.84.0", "glob": "^7.1.2", "jest": "^23.6.0", "prettier": "1.13.6", diff --git a/src/App.js b/src/App.js index 6b8d15dae..da3d2384c 100644 --- a/src/App.js +++ b/src/App.js @@ -72,10 +72,6 @@ export class App extends React.Component { ); } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default connect( ({ application: {pluginManagerVisible, bugDialogVisible, leftSidebarVisible}, diff --git a/src/NotificationsHub.js b/src/NotificationsHub.js index 04aba1192..448fe95e1 100644 --- a/src/NotificationsHub.js +++ b/src/NotificationsHub.js @@ -322,10 +322,6 @@ class NotificationsTable extends Component { } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ const ConnectedNotificationsTable = connect( ({ notifications: { diff --git a/src/PluginContainer.js b/src/PluginContainer.js index b609a05bd..a6168e92e 100644 --- a/src/PluginContainer.js +++ b/src/PluginContainer.js @@ -174,10 +174,6 @@ class PluginContainer extends Component { } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default connect( ({ application: {rightSidebarVisible, rightSidebarAvailable}, diff --git a/src/chrome/DetailSidebar.js b/src/chrome/DetailSidebar.js index 6e9068df8..0d3d5e477 100644 --- a/src/chrome/DetailSidebar.js +++ b/src/chrome/DetailSidebar.js @@ -51,10 +51,6 @@ class DetailSidebar extends React.Component { } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default connect( ({application: {rightSidebarVisible, rightSidebarAvailable}}) => ({ rightSidebarVisible, diff --git a/src/chrome/DevicesButton.js b/src/chrome/DevicesButton.js index ce3568a93..79e3c9bfb 100644 --- a/src/chrome/DevicesButton.js +++ b/src/chrome/DevicesButton.js @@ -94,10 +94,6 @@ class DevicesButton extends Component { ); } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default connect( ({connections: {devices, androidEmulators, selectedDevice}}) => ({ devices, diff --git a/src/chrome/MainSidebar.js b/src/chrome/MainSidebar.js index 25dbd39b0..18a1d6436 100644 --- a/src/chrome/MainSidebar.js +++ b/src/chrome/MainSidebar.js @@ -301,10 +301,6 @@ class MainSidebar extends Component { } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default connect( ({ application: {windowIsFocused}, diff --git a/src/chrome/ScreenCaptureButtons.js b/src/chrome/ScreenCaptureButtons.js index 9ff9ad732..a70276806 100644 --- a/src/chrome/ScreenCaptureButtons.js +++ b/src/chrome/ScreenCaptureButtons.js @@ -282,10 +282,6 @@ class ScreenCaptureButtons extends Component { } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default connect(({connections: {selectedDevice}}) => ({ selectedDevice, }))(ScreenCaptureButtons); diff --git a/src/chrome/TitleBar.js b/src/chrome/TitleBar.js index 33caba286..d8392feba 100644 --- a/src/chrome/TitleBar.js +++ b/src/chrome/TitleBar.js @@ -107,10 +107,6 @@ class TitleBar extends Component { } } -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default connect( ({ application: { diff --git a/src/plugins/logs/LogWatcher.js b/src/plugins/logs/LogWatcher.js index 9a7286713..63f8ccf0d 100644 --- a/src/plugins/logs/LogWatcher.js +++ b/src/plugins/logs/LogWatcher.js @@ -130,10 +130,6 @@ export default class LogWatcher extends PureComponent { }; buildRows = () => { - /* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ return this.props.counters.map(({label, count, notify}, i) => ({ columns: { expression: { diff --git a/src/reducers/index.js b/src/reducers/index.js index 3b30d4db3..7e8100ffb 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -52,10 +52,6 @@ export type Store = ReduxStore< | {|type: 'INIT'|}, >; -/* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ export default combineReducers({ application, connections: persistReducer( diff --git a/src/ui/components/elements-inspector/sidebar.js b/src/ui/components/elements-inspector/sidebar.js index 9535e8743..55c4ea757 100644 --- a/src/ui/components/elements-inspector/sidebar.js +++ b/src/ui/components/elements-inspector/sidebar.js @@ -120,10 +120,6 @@ export class InspectorSidebar extends Component { const sections = (extensions && - /* $FlowFixMe(>=0.86.0) This - * comment suppresses an error found when Flow v0.86 was - * deployed. To see the error, delete this comment and - * run Flow. */ extensions.map(ext => ext( this.props.client, diff --git a/yarn.lock b/yarn.lock index 9826ce5ba..886040492 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2804,10 +2804,10 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flow-bin@^0.86.0: - version "0.86.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.86.0.tgz#153a28722b4dc13b7200c74b644dd4d9f4969a11" - integrity sha512-ulRvFH3ewGIYwg+qPk/OJXoe3Nhqi0RyR0wqgK0b1NzUDEC6O99zU39MBTickXvlrr6iwRO6Wm4lVGeDmnzbew== +flow-bin@^0.84.0: + version "0.84.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.84.0.tgz#4cb2364c750fb37a7840524fa62456b53f64cdcb" + integrity sha512-ocji8eEYp+YfICsm+F6cIHUcD7v5sb0/ADEXm6gyUKdjQzmSckMrPUdZtyfP973t3YGHKliUMxMvIBHyR5LbXQ== flow-parser@^0.*: version "0.81.0"