React Doctor
492 rules react-doctor@0.9.14
Complete effective rule inventory.
Rules
No enabled React Doctor rules match this search.
-
react-doctor/waapi-animation-in-renderStart element.animate() from an effect or interaction handler so React renders stay pure.
: error in React projects -
react-doctor/web-animation-offsets-validKeep explicit Web Animation keyframe offsets between 0 and 1 and in nondecreasing order.
: error in React projects -
react-doctor/webgl-no-sync-readback-in-animation-loopMove GPU readback to a discrete or asynchronous path and reuse the latest completed result during frames
: warning in React projects -
react-doctor/webhook-signature-riskVerify provider signatures before parsing or acting on webhook bodies. Use provider SDK helpers or HMAC verification with timing-safe comparison.
: warning in React projects -
react-doctor/window-open-without-noopenerPass
'noopener'in the third features argument ofwindow.openso the opened page can't control your tab throughwindow.opener. Add'noreferrer'too when the destination must not receive the referrer.: warning in React projects -
react-doctor/zod-v4-no-deprecated-error-apisUse the Zod 4 helpers instead:
z.treeifyError(),z.flattenError(),z.prettifyError(), or readerror.issuesdirectly.: warning in React projects -
react-doctor/zod-v4-no-deprecated-error-customizationIn Zod 4, use the single
{ error }option instead of message strings,invalid_type_error,required_error, orerrorMap.: warning in React projects -
react-doctor/zod-v4-no-deprecated-schema-apisSwitch to the Zod 4 versions: top-level factories like
z.enum(), object helpers likez.strictObject(), the newz.function({ input, output })form, and explicit key/value schemas forz.record().: warning in React projects -
react-doctor/zustand-no-fresh-selector-resultSelect a stable store field, split the selector, or wrap a collection selector with
useShallow.: error in React projects -
react-doctor/zustand-no-get-during-initializationMove the read into a deferred store action or derive the initial value without calling
get().: error in React projects -
react-doctor/zustand-no-mutating-stateCreate a new object, array, Map, or Set before passing the updated value to Zustand.
: error in React projects -
react-doctor/zustand-no-whole-store-destructurePass a selector to the Zustand hook so this component rerenders only when the state it reads changes.
: warning in React projects