You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(react-doctor): extract isFunctionLikeVariableDeclarator to file scope (Bugbot #157 round 4)
The helper was inlined three times with identical bodies in
`noDerivedUseState`, `noPropCallbackInEffect`, and the newly added
`noMirrorPropEffect`. Bugbot pointed out the divergence risk (low
severity but a clear maintenance smell). Hoist to a single
file-scope const at the top of the module; the three rules now
share the implementation.
No behavior change. 511/511 tests still pass.
Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>
0 commit comments