SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[compiler] Cleanup and enable validateNoVoidUseMemo (#34882)

This is a great validation, so let's enable by default. Changes:
* Move the validation logic into ValidateUseMemo alongside the new check
that the useMemo result is used
* Update the lint description
* Make the void memo errors lint-only, they don't require us to skip
compilation (as evidenced by the fact that we've had this validation
off)

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34882).
* #34855
* __->__ #34882

DiffTrain build for [1324e1bb1f867e8b2108ca52a1d4e2d4ef56d2d9](https://github.com/facebook/react/commit/1324e1bb1f867e8b2108ca52a1d4e2d4ef56d2d9)
J
josephsavona committed
b4ccbcd44a315f86d62c5d99448f571c927cfa18
Parent: 422787c