dillon1000/react

Commit

[eprh] Remove NoUnusedOptOutDirectives (#34703)

This rule was a leftover from a while ago and doesn't actually lint
anything useful. Specifically, you get a lint error if you try to opt
out a component that isn't already bailing out. If there's a bailout the
compiler already safely skips over it, so adding `'use no memo'` there
is unnecessary.

Fixes #31407

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34703).
* __->__ #34703
* #34700
Browse files
Changed paths5 files
First-parent comparison
D compiler/packages/eslint-plugin-react-compiler/__tests__/NoUnusedDirectivesRule-test.ts DeletedM compiler/packages/eslint-plugin-react-compiler/src/rules/ReactCompilerRule.ts ModifiedM compiler/packages/eslint-plugin-react-compiler/src/shared/RunReactCompiler.ts ModifiedM packages/eslint-plugin-react-hooks/src/shared/ReactCompiler.ts ModifiedM packages/eslint-plugin-react-hooks/src/shared/RunReactCompiler.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…