From f708cc409f2d68a7381b7d6863e02d8df6e90eaa Mon Sep 17 00:00:00 2001 From: David Richey Date: Mon, 27 Mar 2023 23:50:24 -0700 Subject: [PATCH] Enable unused-promise lint in xplat/js (#36589) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36589 Enable the unused-promise lint in xplat/js. See https://flow.org/en/docs/linting/rule-reference/#toc-unused-promise for more details. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D44156206 fbshipit-source-id: e318df09094be56604729f69d865657596f8d3c2 --- .flowconfig | 1 + .flowconfig.android | 1 + 2 files changed, 2 insertions(+) diff --git a/.flowconfig b/.flowconfig index 0d79ddce53f..17f6b722c26 100644 --- a/.flowconfig +++ b/.flowconfig @@ -63,6 +63,7 @@ nonstrict-import=warn deprecated-type=error unsafe-getters-setters=warn unnecessary-invariant=warn +unused-promise=error [strict] deprecated-type diff --git a/.flowconfig.android b/.flowconfig.android index da1512b4b19..7999c90a7bc 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -63,6 +63,7 @@ nonstrict-import=warn deprecated-type=error unsafe-getters-setters=warn unnecessary-invariant=warn +unused-promise=error [strict] deprecated-type