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
This commit is contained in:
David Richey 2023-03-27 23:50:24 -07:00 committed by Facebook GitHub Bot
parent d9f7c4c189
commit f708cc409f
2 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ nonstrict-import=warn
deprecated-type=error
unsafe-getters-setters=warn
unnecessary-invariant=warn
unused-promise=error
[strict]
deprecated-type

View File

@ -63,6 +63,7 @@ nonstrict-import=warn
deprecated-type=error
unsafe-getters-setters=warn
unnecessary-invariant=warn
unused-promise=error
[strict]
deprecated-type