mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a3d9e91203
Summary: We will soon be enforcing that flow suppressions will only apply when on an error's primary location ([post](https://fb.workplace.com/groups/179614562644215/permalink/559286354677032/)). This diff uses the codemod created in D20008770 to move all suppression comments to their primary locations in the `xplat/js` flow root, and deletes suppression comments that are not on any primary locations. This diff was generated with: ``` ~/fbsource/fbcode/flow/packages/flow-dev-tools/bin/tool suppression-primary-locations --json-file ~/www/errors.json ~/fbsource/xplat/js hg st -n | xargs grep -l -P '@(partially-)?generated' | xargs hg revert hg st -n | xargs grep -l 'format' | xargs prettier --write ``` Changelog: [Internal] bypass-lint Reviewed By: dsainati1 Differential Revision: D20122544 fbshipit-source-id: d94e409aadb18bb399a1ddbf9f3f2494fe4fb54c