From d5ddc6543efb2d26303a8bc3f38a5ad5dfe0e4f7 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 9 Sep 2022 16:21:32 -0400 Subject: [PATCH] Flow: upgrade to 0.131 (#25224) This also downgrades the new lint warning to avoid new suppressions with this upgrade. --- package.json | 2 +- scripts/flow/config/flowconfig | 6 +++++- yarn.lock | 9 +++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1036d8e0a6918..729772b8eb23b 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "eslint-plugin-react-internal": "link:./scripts/eslint-rules", "fbjs-scripts": "1.2.0", "filesize": "^6.0.1", - "flow-bin": "^0.127", + "flow-bin": "^0.131", "glob": "^7.1.6", "glob-stream": "^6.1.0", "google-closure-compiler": "^20200517.0.0", diff --git a/scripts/flow/config/flowconfig b/scripts/flow/config/flowconfig index cb52d604a7c1b..75e63a4375f15 100644 --- a/scripts/flow/config/flowconfig +++ b/scripts/flow/config/flowconfig @@ -38,6 +38,10 @@ [lints] untyped-type-import=error +# TODO: We might want to enable this this as a error (the default), it +# disallows adding undefined and numbers. +unsafe-addition=off + [options] server.max_workers=4 esproposal.class_static_fields=enable @@ -50,4 +54,4 @@ munge_underscores=false %REACT_RENDERER_FLOW_OPTIONS% [version] -^0.127.0 +^0.131.0 diff --git a/yarn.lock b/yarn.lock index ac6d35f47ea72..7468b3abbacc2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6901,6 +6901,7 @@ eslint-plugin-no-unsanitized@3.1.2: "eslint-plugin-react-internal@link:./scripts/eslint-rules": version "0.0.0" + uid "" eslint-plugin-react@^6.7.1: version "6.10.3" @@ -7913,10 +7914,10 @@ flatted@^2.0.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== -flow-bin@^0.127: - version "0.127.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.127.0.tgz#0614cff4c1b783beef1feeb7108d536e09d77632" - integrity sha512-ywvCCdV4NJWzrqjFrMU5tAiVGyBiXjsJQ1+/kj8thXyX15V17x8BFvNwoAH97NrUU8T1HzmFBjLzWc0l2319qg== +flow-bin@^0.131: + version "0.131.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.131.0.tgz#d4228b6070afdf3b2a76acdee77a7f3f8e8f5133" + integrity sha512-fZmoIBcDrtLhy/NNMxwJysSYzMr1ksRcAOMi3AHSoYXfcuQqTvhGJx+wqjlIOqIwz8RRYm8J4V4JrSJbIKP+Xg== fluent-syntax@0.13.0: version "0.13.0"