Skip to content

oxlint-plugin-react-doctor@0.9.23

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 04:17
· 457 commits to main since this release

Patch Changes

  • #2410 359dc77 Thanks @aidenybai! - Accept ASCII case variants of valid HTML button type keywords.

  • #2433 b8da6b9 Thanks @aidenybai! - Avoid inferring transition: all from unresolved custom Tailwind transition utilities paired with a duration.

  • #2434 654e650 Thanks @aidenybai! - Report a timer that a named async function scheduled by useEffect creates after an await without checking an effect-local lifecycle guard, such as const load = async () => { await fetch(url); timer = setTimeout(...) }; void load();. The cleanup can run before the timer exists, so clearing the stored handle does not release it. The same code written as an async IIFE was already reported. A timer created before the first await, or one behind a guard that the cleanup invalidates, stays accepted. Guarded async work that restarts itself stays reported, as in #1762.

  • #1958 5364034 Thanks @skoshx! - Fix effect-needs-cleanup false positive when React Navigation useNavigation() result is renamed. The rule now correctly recognizes cleanup for addListener calls regardless of the receiver variable name, while preserving support for navigation props.

  • #2346 4989042 Thanks @aidenybai! - Avoid blanket-access warnings for direct Firebase conditions that combine sign-in with a stored-owner UID equality. Preserve broad-access findings and locate later unsafe statements after a protected condition.

  • #1958 5364034 Thanks @skoshx! - Accept renamed listener receivers initialized from a declared callable subscription contract when cleanup releases the handle on every path.

  • #1959 ab7795b Thanks @skoshx! - Accept guarded subscriptions created after a promise resolves when the effect cleanup cancels late work and releases the retained handle. This supports nullable cleanup with optional chaining, direct null checks, and logical AND guards, including Expo Accelerometer availability checks.

    Keep reporting missing cancellation, skipped releases, overwritten handles, repeated acquisition, and opaque thenable producers.

  • #2438 ec45ff9 Thanks @aidenybai! - Check cleanup for inline and named useFocusEffect callbacks from Expo Router and React Navigation without falsely flagging callbacks whose cleanup is owned by the hook.

  • #2435 e468c6f Thanks @aidenybai! - Recognize Alchemy server resource bundles instead of reporting browser exposure, and avoid source cryptography heuristics on generated bundles while retaining browser-artifact secret checks.

  • #1955 a182cd2 Thanks @skoshx! - Recognize owned listener cleanup through supported logical receivers. Require stable receiver bindings, proven callable listener results, and cleanup on every path; retain warnings for unknown providers, receiver mutations, and subscriptions created during cleanup.

  • #2400 0bebfec Thanks @aidenybai! - Recognize the onUpdate prop on Three.js lines rendered by React Three Fiber Canvas.

  • #2289 3eda1c1 Thanks @aidenybai! - Prevent no-reset-all-state-on-prop-change from crashing when initial or next state expressions contain BigInt literals.

  • #2342 1cc1c94 Thanks @aidenybai! - Clarify that the iframe sandbox escape involving allow-scripts and allow-same-origin requires content with the same origin as its embedding page, and use a title covering both missing sandbox attributes and sandbox values. Diagnostic detection and rule identifiers are unchanged.

  • #2436 8177197 Thanks @aidenybai! - Respect React Compiler memoization for TanStack Table v9 useTable options while preserving checks for the v8 API and explicit compiler opt-outs.