diff --git a/desktop/.flowconfig b/desktop/.flowconfig --- a/desktop/.flowconfig +++ b/desktop/.flowconfig @@ -6,6 +6,7 @@ [options] enums=true +casting_syntax=both exact_by_default=true format.bracket_spacing=false diff --git a/desktop/package.json b/desktop/package.json --- a/desktop/package.json +++ b/desktop/package.json @@ -43,7 +43,7 @@ "babel-plugin-syntax-hermes-parser": "^0.29.1", "cross-env": "^7.0.3", "electron": "^25.8.4", - "flow-bin": "^0.262.0", + "flow-bin": "^0.269.1", "flow-typed": "^4.1.1", "fs-extra": "^10.1.0", "gaxios": "^4.3.2", diff --git a/keyserver/.flowconfig b/keyserver/.flowconfig --- a/keyserver/.flowconfig +++ b/keyserver/.flowconfig @@ -15,6 +15,7 @@ [options] enums=true +casting_syntax=both module.file_ext=.js module.file_ext=.cjs @@ -26,6 +27,8 @@ react.runtime=automatic +ban_spread_key_props=true + [lints] sketchy-null-number=warn sketchy-null-mixed=warn diff --git a/keyserver/package.json b/keyserver/package.json --- a/keyserver/package.json +++ b/keyserver/package.json @@ -39,7 +39,7 @@ "babel-plugin-transform-import-meta": "2.2.1", "chokidar-cli": "^2.1.0", "concurrently": "^5.3.0", - "flow-bin": "^0.262.0", + "flow-bin": "^0.269.1", "flow-typed": "^4.1.1", "internal-ip": "4.3.0", "jest": "^29.7.0", diff --git a/landing/.flowconfig b/landing/.flowconfig --- a/landing/.flowconfig +++ b/landing/.flowconfig @@ -8,10 +8,16 @@ module.name_mapper.extension='css' -> '/flow/CSSModule.js.flow' enums=true +casting_syntax=both + exact_by_default=true format.bracket_spacing=false +react.runtime=automatic + +ban_spread_key_props=true + [lints] sketchy-null-number=warn sketchy-null-mixed=warn diff --git a/landing/package.json b/landing/package.json --- a/landing/package.json +++ b/landing/package.json @@ -24,7 +24,7 @@ "babel-plugin-syntax-hermes-parser": "^0.29.1", "babel-plugin-transform-remove-console": "^6.9.4", "concurrently": "^5.3.0", - "flow-bin": "^0.262.0", + "flow-bin": "^0.269.1", "flow-typed": "^4.1.1", "webpack-cli": "^5.0.1", "webpack-dev-server": "^4.11.1", diff --git a/lib/.flowconfig b/lib/.flowconfig --- a/lib/.flowconfig +++ b/lib/.flowconfig @@ -6,11 +6,16 @@ [options] enums=true +casting_syntax=both exact_by_default=true format.bracket_spacing=false +react.runtime=automatic + +ban_spread_key_props=true + [lints] sketchy-null-number=warn sketchy-null-mixed=warn diff --git a/lib/package.json b/lib/package.json --- a/lib/package.json +++ b/lib/package.json @@ -26,7 +26,7 @@ "clean-webpack-plugin": "^4.0.0", "css-loader": "^6.7.3", "css-minimizer-webpack-plugin": "^4.2.2", - "flow-bin": "^0.262.0", + "flow-bin": "^0.269.1", "flow-typed": "^4.1.1", "jest": "^29.7.0", "mini-css-extract-plugin": "^2.7.2", diff --git a/native/.flowconfig b/native/.flowconfig --- a/native/.flowconfig +++ b/native/.flowconfig @@ -31,7 +31,10 @@ [options] enums=true +casting_syntax=both + emoji=true + exact_by_default=true format.bracket_spacing=false @@ -49,10 +52,15 @@ module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub' module.name_mapper='^.*(\.js.raw)$' -> 'raw-files' +react.runtime=automatic + suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FlowFixMeProps suppress_type=$FlowFixMeState +suppress_type=$FlowFixMeEmpty + +ban_spread_key_props=true [lints] sketchy-null-number=warn @@ -75,4 +83,4 @@ untyped-type-import [version] -^0.262.0 +^0.269.1 diff --git a/native/package.json b/native/package.json --- a/native/package.json +++ b/native/package.json @@ -41,7 +41,7 @@ "babel-plugin-transform-bigint": "^1.0.34", "babel-plugin-transform-remove-console": "^6.9.4", "babel-plugin-transform-remove-strict-mode": "0.0.2", - "flow-bin": "^0.262.0", + "flow-bin": "^0.269.1", "flow-typed": "^4.1.1", "fs-extra": "^8.1.0", "googleapis": "^89.0.0", diff --git a/services/electron-update-server/package.json b/services/electron-update-server/package.json --- a/services/electron-update-server/package.json +++ b/services/electron-update-server/package.json @@ -15,7 +15,7 @@ "hazel-server": "^5.1.1" }, "devDependencies": { - "flow-bin": "^0.262.0", + "flow-bin": "^0.269.1", "flow-typed": "^4.1.1", "nodemon": "^2.0.4" }, diff --git a/web/.flowconfig b/web/.flowconfig --- a/web/.flowconfig +++ b/web/.flowconfig @@ -11,10 +11,16 @@ module.name_mapper.extension='css' -> '/flow/CSSModule.js.flow' enums=true +casting_syntax=both + exact_by_default=true format.bracket_spacing=false +react.runtime=automatic + +ban_spread_key_props=true + [lints] sketchy-null-number=warn sketchy-null-mixed=warn diff --git a/web/package.json b/web/package.json --- a/web/package.json +++ b/web/package.json @@ -31,7 +31,7 @@ "babel-plugin-transform-remove-console": "^6.9.4", "concurrently": "^5.3.0", "copy-webpack-plugin": "^11.0.0", - "flow-bin": "^0.262.0", + "flow-bin": "^0.269.1", "flow-typed": "^4.1.1", "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", diff --git a/yarn.lock b/yarn.lock --- a/yarn.lock +++ b/yarn.lock @@ -12931,10 +12931,10 @@ debug "^4.1.1" fs-extra "^7.0.0" -flow-bin@^0.262.0: - version "0.262.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.262.0.tgz#612f7cb96c51d9fe7e6819ab9d582f19e5674554" - integrity sha512-B7l0NcpQ3uZuaWs07aQCjG+8fcxF/awbEmuf1p/6a/ZnQjPBB5uIzWmTuxdnrQns5/2orCpC37k9FJuRP7Aj3g== +flow-bin@^0.269.1: + version "0.269.1" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.269.1.tgz#35396a95b769171e56d493b3a0cca9ade9944011" + integrity sha512-k5Ja91KVNVtGxyGuEm21lqf2TeVWXriiwlVHU95k8ArJwEZQ+KVza9ZSvJYgwMnpp7/Q9nuSdWJ9MJdEbvl2QQ== flow-enums-runtime@^0.0.6: version "0.0.6"